Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int camera_abilities ( CameraAbilitiesList list  ) 

Fill list with abilities of the cameras supported by this camlib.

For each camera, fill a CameraAbilities structure with data about that camera and append it to the list.

The job of this function is basically to extract data from a camlib specific database and insert it into the libgphoto2 camera database. Due to redundant data and other issues, we may decide to revise that database mechanism and replace it by something more flexible and efficient.

This is a camlib API function.

Definition at line 404 of file template.c.

References CameraAbilities::file_operations, CameraAbilities::folder_operations, gp_abilities_list_append(), CameraAbilities::model, CameraAbilities::operations, CameraAbilities::port, CameraAbilities::speed, and CameraAbilities::status.

{
      CameraAbilities a;

      memset(&a, 0, sizeof(a));
      strcpy(a.model, "CAMERA VENDOR:CAMERA MODEL");
      a.status = GP_DRIVER_STATUS_PRODUCTION;
      a.port     = GP_PORT_SERIAL | GP_PORT_USB;
      a.speed[0] = 0;
      a.operations        =   GP_OPERATION_CAPTURE_PREVIEW | 
                        GP_CAPTURE_IMAGE;
      a.file_operations   =   GP_FILE_OPERATION_DELETE | 
                        GP_FILE_OPERATION_PREVIEW;
      a.folder_operations =   GP_FOLDER_OPERATION_NONE;

      gp_abilities_list_append(list, a);

      return GP_OK;
}


Generated by  Doxygen 1.6.0   Back to index