From a1e34e365b84d5a1c47dbcffa4141303533a55e7 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 10 Mar 2011 17:31:54 +0100 Subject: Use SWIG for easy language binding creation --- src/uca-cam.h | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'src/uca-cam.h') 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 +#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 -- cgit v1.2.3