summaryrefslogtreecommitdiffstats
path: root/src/uca-cam.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-02-03 11:09:54 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-02-03 11:09:54 +0100
commitc9c94390c520ad496082222858c0f1285f1432df (patch)
treee0cec60e2e99a7eba3dca63399054f89097f8d9a /src/uca-cam.h
parent6461f2e549876cb54456925f47094bb53e2c8672 (diff)
downloaduca-c9c94390c520ad496082222858c0f1285f1432df.tar.gz
uca-c9c94390c520ad496082222858c0f1285f1432df.tar.bz2
uca-c9c94390c520ad496082222858c0f1285f1432df.tar.xz
uca-c9c94390c520ad496082222858c0f1285f1432df.zip
Callback function have to notify caller about buffer
If they return a UCA_BUFFER_KEEP they have to call uca_cam_release_buffer() in the future. If returning UCA_BUFFER_RELEASE, this is done by the caller.
Diffstat (limited to 'src/uca-cam.h')
-rw-r--r--src/uca-cam.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/uca-cam.h b/src/uca-cam.h
index cba0305..08b7941 100644
--- a/src/uca-cam.h
+++ b/src/uca-cam.h
@@ -63,6 +63,7 @@ typedef struct uca_camera_priv {
uint32_t (*stop_recording) (struct uca_camera_priv *cam);
uint32_t (*trigger) (struct uca_camera_priv *cam);
uint32_t (*register_callback) (struct uca_camera_priv *cam, uca_cam_grab_callback callback, void *user);
+ uint32_t (*release_buffer) (struct uca_camera_priv *cam, void *buffer);
uint32_t (*grab) (struct uca_camera_priv *cam, char *buffer, void *meta_data);
uint32_t (*readout) (struct uca_camera_priv *cam);