summaryrefslogtreecommitdiffstats
path: root/src/uca-cam.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uca-cam.h')
-rw-r--r--src/uca-cam.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/src/uca-cam.h b/src/uca-cam.h
index a7f1827..367b7ab 100644
--- a/src/uca-cam.h
+++ b/src/uca-cam.h
@@ -3,12 +3,24 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct uca_camera_t;
struct uca_grabber_t;
struct uca_property_t;
enum uca_property_ids;
+enum uca_cam_state {
+ UCA_CAM_ERROR,
+ UCA_CAM_CONFIGURABLE,
+ UCA_CAM_ARMED,
+ UCA_CAM_RECORDING,
+};
+
+
/*
* --- non-virtual methods ----------------------------------------------------
*/
@@ -75,13 +87,6 @@ typedef uint32_t (*uca_cam_stop_recording) (struct uca_camera_t *cam);
typedef uint32_t (*uca_cam_grab) (struct uca_camera_t *cam, char *buffer);
-enum uca_cam_state {
- UCA_CAM_ERROR,
- UCA_CAM_CONFIGURABLE,
- UCA_CAM_ARMED,
- UCA_CAM_RECORDING,
-};
-
struct uca_camera_t {
struct uca_camera_t *next;
@@ -103,4 +108,8 @@ struct uca_camera_t {
void *user; /**< private user data to be used by the camera driver */
};
+#ifdef __cplusplus
+}
+#endif
+
#endif