+// Copyright (C) 2019 Jaslo Ziska
+
#include "photobox_photo.h"
#include <stdio.h>
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;
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:
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);