summaryrefslogtreecommitdiff
path: root/camlibs/sonydscf1
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2006-03-31 21:43:18 +0000
committerMarcus Meissner <marcus@jet.franken.de>2006-03-31 21:43:18 +0000
commit22ce3b452b2c7110405c11a723559ce3594e883a (patch)
treee84a2cdc45e58da5891d082b1155aeb0daa76ce4 /camlibs/sonydscf1
parent6ec5c187fff1e0887fd4d8d6b0052d9184ad718f (diff)
downloadlibgphoto2-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/sonydscf1')
-rw-r--r--camlibs/sonydscf1/sonydscf1.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/camlibs/sonydscf1/sonydscf1.c b/camlibs/sonydscf1/sonydscf1.c
index bb31927ab..bc9b81bbb 100644
--- a/camlibs/sonydscf1/sonydscf1.c
+++ b/camlibs/sonydscf1/sonydscf1.c
@@ -150,6 +150,12 @@ static int file_list_func (CameraFilesystem *fs, const char *folder,
return GP_OK;
}
+static CameraFilesystemFuncs fsfuncs = {
+ .file_list_func = file_list_func,
+ .get_file_func = get_file_func,
+ .del_file_func = delete_file_func,
+};
+
int camera_init (Camera *camera, GPContext *context) {
GPPortSettings settings;
@@ -169,10 +175,6 @@ int camera_init (Camera *camera, GPContext *context) {
gp_port_set_settings (camera->port, settings);
/* Set up the filesystem */
- 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);
-
- return (GP_OK);
+ return gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera);
}