From c9c94390c520ad496082222858c0f1285f1432df Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 3 Feb 2012 11:09:54 +0100 Subject: 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. --- src/uca-cam.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/uca-cam.h') 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); -- cgit v1.2.3