Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_camera_get_manual ( Camera camera,
CameraText manual,
GPContext context 
)

Retrieves the manual for given camera.

Parameters:
camera a Camera
manual a CameraText
context a GPContext
Returns:
a gphoto2 error code
This manual typically contains information about using the camera.

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

References CHECK_NULL, GP_ERROR_NOT_SUPPORTED, and GP_OK.

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

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

      CHECK_RESULT_OPEN_CLOSE (camera, camera->functions->manual (camera,
                                    manual, context), context);

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


Generated by  Doxygen 1.6.0   Back to index