summaryrefslogtreecommitdiff
path: root/camlibs/agfa-cl20
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2006-03-19 20:08:57 +0000
committerMarcus Meissner <marcus@jet.franken.de>2006-03-19 20:08:57 +0000
commit79b84aba77b84aa82815c9ee17902d14f7a74d6f (patch)
tree1d1fd974276da25e03550beb714ff831f4947eb2 /camlibs/agfa-cl20
parent468d0024f8c60d9f746c1f67ad8ef9e6ef008605 (diff)
downloadlibgphoto2-79b84aba77b84aa82815c9ee17902d14f7a74d6f.tar.gz
use static fsfuncs.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8629 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/agfa-cl20')
-rw-r--r--camlibs/agfa-cl20/agfa_cl20.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/camlibs/agfa-cl20/agfa_cl20.c b/camlibs/agfa-cl20/agfa_cl20.c
index 1f92f3e1d..697b0b2b1 100644
--- a/camlibs/agfa-cl20/agfa_cl20.c
+++ b/camlibs/agfa-cl20/agfa_cl20.c
@@ -651,6 +651,12 @@ file_list_func (CameraFilesystem *fs, const char *folder, CameraList *list,
return (GP_OK);
}
+static CameraFilesystemFuncs fsfuncs = {
+ .file_list_func = file_list_func,
+ .get_info_func = get_info_func,
+ .get_file_func = get_file_func,
+};
+
int
camera_init (Camera *camera, GPContext *context)
{
@@ -666,14 +672,7 @@ camera_init (Camera *camera, GPContext *context)
camera->functions->about = camera_about;
/* Now, tell the filesystem where to get lists, files and info */
- gp_filesystem_set_list_funcs (camera->fs, file_list_func,
- NULL, camera);
- gp_filesystem_set_info_funcs (camera->fs, get_info_func, NULL,
- camera);
- gp_filesystem_set_file_funcs (camera->fs, get_file_func,
- NULL, camera);
- gp_filesystem_set_folder_funcs (camera->fs, NULL,
- NULL, NULL, NULL, camera);
+ gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera);
/*
* The port is already provided with camera->port (and