diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-10 17:31:54 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-10 17:31:54 +0100 |
commit | a1e34e365b84d5a1c47dbcffa4141303533a55e7 (patch) | |
tree | fd2370fe9e1ec6695fd04554cc73454d8baba610 /src/uca-cam.h | |
parent | 423e180f3a55cd4b3350d0f50d71685f3052d145 (diff) | |
download | uca-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.h | 23 |
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 |