X-Git-Url: https://git.jaslogic.tech/photobox.git/blobdiff_plain/12b752365988978d0398a0b8852d60c1f81a9c49..HEAD:/src/photobox_photo.c?ds=sidebyside diff --git a/src/photobox_photo.c b/src/photobox_photo.c index 87bc9de..a13ac6c 100644 --- a/src/photobox_photo.c +++ b/src/photobox_photo.c @@ -1,3 +1,5 @@ +// Copyright (C) 2019 Jaslo Ziska + #include "photobox_photo.h" #include @@ -12,7 +14,7 @@ static Camera *camera; static GPContext *context; -void dumperror(GPLogLevel level, const char *domain, const char *str, void *data) +static void dumperror(GPLogLevel level, const char *domain, const char *str, void *data) { // suppress unused parameter errors (ugly): (void) level; @@ -49,14 +51,10 @@ int pb_ph_init(void) gp_context_unref(context); return ret; } -int pb_ph_uninit(void) +void pb_ph_uninit(void) { - int ret; - - ret = gp_camera_exit(camera, context); + gp_camera_exit(camera, context); gp_context_unref(context); - - return ret; } // unused, unmaintained: @@ -123,7 +121,6 @@ int pb_ph_capture_file(const char *fn) if (ret != GP_OK) goto error_fd; - // ret = gp_camera_file_get(camera, camera_file_path.folder, camera_file_path.name, GP_FILE_TYPE_NORMAL, file, context);