diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2006-03-31 21:43:18 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2006-03-31 21:43:18 +0000 |
commit | 22ce3b452b2c7110405c11a723559ce3594e883a (patch) | |
tree | e84a2cdc45e58da5891d082b1155aeb0daa76ce4 /camlibs/soundvision | |
parent | 6ec5c187fff1e0887fd4d8d6b0052d9184ad718f (diff) | |
download | libgphoto2-22ce3b452b2c7110405c11a723559ce3594e883a.tar.gz |
converted more camlibs to fsfuncs.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8699 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/soundvision')
-rw-r--r-- | camlibs/soundvision/soundvision.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/camlibs/soundvision/soundvision.c b/camlibs/soundvision/soundvision.c index a7eb44cf0..8bdf68355 100644 --- a/camlibs/soundvision/soundvision.c +++ b/camlibs/soundvision/soundvision.c @@ -426,7 +426,12 @@ static int put_file_func (CameraFilesystem *fs, const char *folder, return GP_OK; } - +static CameraFilesystemFuncs fsfuncs = { + .file_list_func = file_list_func, + .get_file_func = get_file_func, + .put_file_func = put_file_func, + .del_file_func = delete_file_func, +}; int camera_init(Camera *camera, GPContext *context) { @@ -496,16 +501,7 @@ int camera_init(Camera *camera, GPContext *context) { camera->pl = NULL; return (ret); } - - /* Tell the CameraFilesystem where to get lists from */ - gp_filesystem_set_list_funcs (camera->fs, file_list_func, NULL, camera); - gp_filesystem_set_file_funcs (camera->fs, get_file_func, delete_file_func, - camera); - gp_filesystem_set_folder_funcs (camera->fs, put_file_func, - NULL, NULL, NULL, camera); - - - - return GP_OK; + /* Tell the CameraFilesystem where to get lists from */ + return gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera); } |