Logo Search packages:      
Sourcecode: libgphoto2 version File versions

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

Set the functions to list folders and files.

Parameters:
fs a CameraFilesystem
file_list_func the function that will return listings of files
folder_list_func the function that will return listings of folders
data private data structure
Tells the fs 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 fs assumes that there is only a root folder.

Returns:
a gphoto2 error code.

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

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


Generated by  Doxygen 1.6.0   Back to index