Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

int gp_camera_set_config ( Camera camera,
CameraWidget window,
GPContext context 
)

Sets the configuration.

Parameters:
camera a Camera
window a CameraWidget
context a GPContext
Returns:
a gphoto2 error code
Typically, a window is retrieved using gp_camera_get_config and passed to this function in order to adjust the settings on the camera.

Definition at line 828 of file gphoto2-camera.c.

References CHECK_NULL, GP_ERROR_NOT_SUPPORTED, and GP_OK.

{
      CHECK_NULL (camera && window);
      CHECK_INIT (camera, context);

      if (!camera->functions->set_config) {
            gp_context_error (context, _("This camera does "
                  "not support setting configuration options."));
            CAMERA_UNUSED (camera, context);
                return (GP_ERROR_NOT_SUPPORTED);
      }

      CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->set_config (camera,
                                    window, context), context);

      CAMERA_UNUSED (camera, context);
      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index