summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2018-10-14 09:20:41 +0200
committerMarcus Meissner <marcus@jet.franken.de>2018-10-14 09:21:13 +0200
commit663401e3c4847963ab582e394cd4769e18d7b335 (patch)
treeb10421fcbd8e00d8d132c7a18d544da828a60a70 /examples
parent25777227daf2c256bba381f91703e23a56f4ab1c (diff)
downloadlibgphoto2-663401e3c4847963ab582e394cd4769e18d7b335.tar.gz
c++ protect
Diffstat (limited to 'examples')
-rw-r--r--examples/samples.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/samples.h b/examples/samples.h
index b7c0197a9..391be513c 100644
--- a/examples/samples.h
+++ b/examples/samples.h
@@ -2,6 +2,10 @@
#define __SAMPLES_H
#include <gphoto2/gphoto2-camera.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int sample_autodetect (CameraList *list, GPContext *context);
extern int sample_open_camera (Camera ** camera, const char *model, const char *port, GPContext *context);
extern GPContext* sample_create_context(void);
@@ -19,4 +23,8 @@ extern int camera_manual_focus (Camera *list, int tgt, GPContext *context);
#define O_BINARY 0
#endif
+#ifdef __cplusplus
+};
+#endif
+
#endif