pub fn autodetect(context: &mut Context) -> ::Result<Self> {
        let mut ptr = unsafe { MaybeUninit::uninit().assume_init() };
        let mut ptrWidget = unsafe { MaybeUninit::uninit().assume_init() };

        try_unsafe!(::gphoto2::gp_camera_new(&mut ptr));

        let camera = Camera { camera: ptr, widget: ptrWidget };

        try_unsafe!(::gphoto2::gp_camera_init(camera.camera, context.as_mut_ptr()));

        Ok(camera)
    }
/// Opens the first detected camera.
Opens the first detected camera.
Opens the first detected camera .
pub fn autodetect(context: &mut Context) -> ::Result<Self> {
        let mut ptr = unsafe { MaybeUninit::uninit().assume_init() };
        let mut ptrWidget = unsafe { MaybeUninit::uninit().assume_init() };
        try_unsafe!(::gphoto2::gp_camera_new(&mut ptr));
        let camera = Camera { camera: ptr, widget: ptrWidget };
        try_unsafe!(::gphoto2::gp_camera_init(camera.camera, context.as_mut_ptr()));
        Ok(camera)
    }
pub fn autodetect ( context : & mut Context ) -> :: Result < Self > { let mut ptr = unsafe { MaybeUninit :: uninit ( ) . assume_init ( ) } ; let mut ptrWidget = unsafe { MaybeUninit :: uninit ( ) . assume_init ( ) } ; try_unsafe ! ( gphoto2 gp_camera_new ( mut ptr ) ) ; let camera = Camera { camera : ptr , widget : ptrWidget } ; try_unsafe ! ( gphoto2 gp_camera_init ( camera camera context as_mut_ptr ( ) ) ) ; Ok ( camera ) }
Opens the first detected camera.
Opens the first detected camera .
context
&mut Context
context
&mut Context