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

int gp_filesystem_set_list_funcs ( CameraFilesystem fs,
CameraFilesystemListFunc  file_list_func,
CameraFilesystemListFunc  folder_list_func,
void *  data 

gp_filesystem_set_list_funcs: : a CameraFilesystem : the function that will return listings of files : the function that will return listings of folders :

Tells the which functions to use to retrieve listings of folders and/or files. Typically, a camera driver would call this function on initialization. Each function can be NULL indicating that this functionality is not supported. For example, many cameras don't support folders. In this case, you would supply NULL for folder_list_func. Then, the assumes that there is only a root folder.

Return value: a gphoto2 error code.

Definition at line 1403 of file gphoto2-filesys.c.

References _CameraFilesystem::file_list_func, _CameraFilesystem::folder_list_func, and _CameraFilesystem::list_data.

      CHECK_NULL (fs);

      fs->file_list_func = file_list_func;
      fs->folder_list_func = folder_list_func;
      fs->list_data = data;

      return (GP_OK);

Generated by  Doxygen 1.6.0   Back to index