diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2018-10-14 09:20:41 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2018-10-14 09:21:13 +0200 |
commit | 663401e3c4847963ab582e394cd4769e18d7b335 (patch) | |
tree | b10421fcbd8e00d8d132c7a18d544da828a60a70 | |
parent | 25777227daf2c256bba381f91703e23a56f4ab1c (diff) | |
download | libgphoto2-663401e3c4847963ab582e394cd4769e18d7b335.tar.gz |
c++ protect
-rw-r--r-- | examples/samples.h | 8 |
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 |