Logo Search packages:      
Sourcecode: libgphoto2 version File versions

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

gp_camera_folder_list_files: : a Camera : a folder : a CameraList : a GPContext

Lists the files in supplied .

Return value: a gphoto2 error code

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

References gp_filesystem_list_files().

{
      gp_log (GP_LOG_DEBUG, "gphoto2-camera", "Listing files in '%s'...",
            folder);

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

      CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_list_files (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