summaryrefslogtreecommitdiffstats
path: root/src/uca.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uca.c')
-rw-r--r--src/uca.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/uca.c b/src/uca.c
index 4a23e69..1d07ea4 100644
--- a/src/uca.c
+++ b/src/uca.c
@@ -341,6 +341,13 @@ uint32_t uca_cam_register_callback(struct uca_camera *cam, uca_cam_grab_callback
return priv->register_callback(priv, callback, user);
}
+uint32_t uca_cam_release_buffer(struct uca_camera *cam, void *buffer)
+{
+ struct uca_camera_priv *priv = cam->priv;
+ if (priv->release_buffer != NULL)
+ return priv->release_buffer(priv, buffer);
+}
+
uint32_t uca_cam_grab(struct uca_camera *cam, char *buffer, void *meta_data)
{
struct uca_camera_priv *priv = cam->priv;