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

int gp_filesystem_set_info_funcs ( CameraFilesystem fs,
CameraFilesystemGetInfoFunc  get_info_func,
CameraFilesystemSetInfoFunc  set_info_func,
void *  data 
)

Set file information functions.

Parameters:
fs a CameraFilesystem
get_info_func the function to retrieve file information
set_info_func the function to set file information
data private data
Tells the filesystem which functions to call when file information about a file should be retrieved or set. Typically, this function will get called by the camera driver on initialization.

Returns:
a gphoto2 error code.

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

References CHECK_NULL, _CameraFilesystem::get_info_func, GP_OK, _CameraFilesystem::info_data, and _CameraFilesystem::set_info_func.

{
      CHECK_NULL (fs);

      fs->get_info_func = get_info_func;
      fs->set_info_func = set_info_func;
      fs->info_data = data;

      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index