summaryrefslogtreecommitdiffstats
path: root/src/uca-cam.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 17:31:54 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 17:31:54 +0100
commita1e34e365b84d5a1c47dbcffa4141303533a55e7 (patch)
treefd2370fe9e1ec6695fd04554cc73454d8baba610 /src/uca-cam.h
parent423e180f3a55cd4b3350d0f50d71685f3052d145 (diff)
downloaduca-a1e34e365b84d5a1c47dbcffa4141303533a55e7.tar.gz
uca-a1e34e365b84d5a1c47dbcffa4141303533a55e7.tar.bz2
uca-a1e34e365b84d5a1c47dbcffa4141303533a55e7.tar.xz
uca-a1e34e365b84d5a1c47dbcffa4141303533a55e7.zip
Use SWIG for easy language binding creation
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