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

int gp_camera_get_config ( Camera camera,
CameraWidget **  window,
GPContext context 
)

Retrieve a configuration window for the camera.

Parameters:
camera a Camera
window a CameraWidget
context a GPContext
Returns:
gphoto2 error code
This window can be used for construction of a configuration dialog.

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

References CHECK_NULL, GP_ERROR_NOT_SUPPORTED, and GP_OK.

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

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

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

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


Generated by  Doxygen 1.6.0   Back to index