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

int gp_camera_get_summary ( Camera camera,
CameraText summary,
GPContext context 
)

Retrieves a camera summary.

Parameters:
camera a Camera
summary a CameraText
context a GPContext
Returns:
a gphoto2 error code
This summary typically contains information like manufacturer, pictures taken, or generally information that is not configurable.

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

References CHECK_NULL, GP_ERROR_NOT_SUPPORTED, and GP_OK.

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

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

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

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


Generated by  Doxygen 1.6.0   Back to index