Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_camera_folder_list_folders ( Camera *  camera,
const char *  folder,
CameraList *  list,
GPContext context 

gp_camera_folder_list_folders: : a Camera : a folder : a CameraList : a GPContext

Lists the folders in supplied .

Return value: a gphoto2 error code

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

References gp_filesystem_list_folders().

      gp_log (GP_LOG_DEBUG, "gphoto2-camera", "Listing folders in '%s'...",

      CHECK_NULL (camera && folder && list);
      CHECK_INIT (camera, context);
      CR (camera, gp_list_reset (list), context);

      CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_list_folders (
                        camera->fs, folder, list, context), context);

      CR (camera, gp_list_sort (list), context);
      CAMERA_UNUSED (camera, context);
        return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index