Logo Search packages:      
Sourcecode: libgphoto2 version File versions

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

gp_filesystem_set_info_funcs: : a CameraFilesystem : the function to retrieve file information : the function to set file information :

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.

Return value: a gphoto2 error code.

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

References _CameraFilesystem::get_info_func, _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