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

int gp_filesystem_set_funcs ( CameraFilesystem fs,
CameraFilesystemFuncs funcs,
void *  data 
)

Set all filesystem related function pointers.

Parameters:
fsa CameraFilesystem
funcspointer to a struct of filesystem functions
dataprivate data

Tells the filesystem which functions to call for camera/filesystem specific functions, like listing, retrieving, uploading files and so on.

Returns:
a gphoto2 error code.

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

References GP_OK.

Referenced by camera_init().

{
      CHECK_NULL (fs);

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

      fs->put_file_func = funcs->put_file_func;
      fs->delete_all_func     = funcs->delete_all_func;
      fs->make_dir_func = funcs->make_dir_func;
      fs->remove_dir_func     = funcs->remove_dir_func;
      fs->folder_data = data;

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

      fs->delete_file_func    = funcs->del_file_func;
      fs->get_file_func = funcs->get_file_func;
      fs->file_data = data;

      fs->storage_info_func   = funcs->storage_info_func;
      return (GP_OK);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index