diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-03-05 16:12:53 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-03-05 16:12:53 +0100 |
commit | 0483c86add2f496021560b82476d22e2497006be (patch) | |
tree | d0fbdd2f09760bf6719443cdceff6e53ee57ae1f /src/uca-camera.h | |
parent | 13acd5530fa2a6689b0a6a3ffa278d58c1428fe1 (diff) | |
download | libuca-0483c86add2f496021560b82476d22e2497006be.tar.gz libuca-0483c86add2f496021560b82476d22e2497006be.tar.bz2 libuca-0483c86add2f496021560b82476d22e2497006be.tar.xz libuca-0483c86add2f496021560b82476d22e2497006be.zip |
Complete async xfer infrastructure
Diffstat (limited to 'src/uca-camera.h')
-rw-r--r-- | src/uca-camera.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/uca-camera.h b/src/uca-camera.h index dc5901a..0370466 100644 --- a/src/uca-camera.h +++ b/src/uca-camera.h @@ -30,7 +30,8 @@ #define UCA_CAMERA_ERROR uca_camera_error_quark() typedef enum { UCA_CAMERA_ERROR_RECORDING, - UCA_CAMERA_ERROR_NOT_RECORDING + UCA_CAMERA_ERROR_NOT_RECORDING, + UCA_CAMERA_ERROR_NO_GRAB_FUNC } UcaCameraError; typedef struct _UcaCamera UcaCamera; @@ -51,6 +52,8 @@ struct _UcaCamera { GObject parent; UcaCameraGrabFunc grab_func; + gpointer user_data; + UcaCameraPrivate *priv; }; @@ -74,7 +77,7 @@ struct _UcaCameraClass { void uca_camera_start_recording(UcaCamera *camera, GError **error); void uca_camera_stop_recording(UcaCamera *camera, GError **error); void uca_camera_grab(UcaCamera *camera, gpointer data, GError **error); -void uca_camera_set_grab_func(UcaCamera *camera, UcaCameraGrabFunc func); +void uca_camera_set_grab_func(UcaCamera *camera, UcaCameraGrabFunc func, gpointer user_data); GType uca_camera_get_type(void); |