From 49cf589ca2fdcbd9ff55ae70040d6d52c57a3fb1 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 28 Feb 2011 11:32:44 +0100 Subject: Add camera state and accessor function --- src/uca.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/uca.c') diff --git a/src/uca.c b/src/uca.c index cf9d9ed..17a7ae2 100644 --- a/src/uca.c +++ b/src/uca.c @@ -79,6 +79,11 @@ void uca_destroy(struct uca_t *uca) } } +enum uca_cam_state uca_get_camera_state(struct uca_camera_t *cam) +{ + return cam->state; +} + static struct uca_property_t property_map[UCA_PROP_LAST+1] = { { "name", uca_na, uca_string }, { "width", uca_pixel, uca_uint32t }, -- cgit v1.2.3