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

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

Lists the folders in supplied folder.

camera a Camera
folder a folder
list a CameraList
context a GPContext
a gphoto2 error code

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

References CHECK_NULL, gp_filesystem_list_folders(), gp_list_reset(), gp_list_sort(), gp_log(), GP_LOG_DEBUG, and GP_OK.

      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