summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2013-02-18 09:50:03 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2013-02-18 09:50:03 +0100
commitb448763e0b4a0b7fec4861aaf1b3a709bcecad2b (patch)
treed69c23a708a317c0cd7275bc192d508879333ea0
parent6cc63f7ea09dcdd39de528f0822c59d34bebc85e (diff)
downloadlibuca-b448763e0b4a0b7fec4861aaf1b3a709bcecad2b.tar.gz
libuca-b448763e0b4a0b7fec4861aaf1b3a709bcecad2b.tar.bz2
libuca-b448763e0b4a0b7fec4861aaf1b3a709bcecad2b.tar.xz
libuca-b448763e0b4a0b7fec4861aaf1b3a709bcecad2b.zip
Implement reading and writing of trigger mode
-rw-r--r--plugins/mock/uca-mock-camera.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mock/uca-mock-camera.c b/plugins/mock/uca-mock-camera.c
index 05393d1..47e08aa 100644
--- a/plugins/mock/uca-mock-camera.c
+++ b/plugins/mock/uca-mock-camera.c
@@ -54,6 +54,8 @@ static const gint mock_overrideables[] = {
static GParamSpec *mock_properties[N_PROPERTIES] = { NULL, };
struct _UcaMockCameraPrivate {
+ UcaCameraTrigger trigger;
+
guint width;
guint height;
guint roi_x, roi_y, roi_width, roi_height;
@@ -269,6 +271,7 @@ static void uca_mock_camera_set_property(GObject *object, guint property_id, con
priv->roi_height = g_value_get_uint(value);
break;
case PROP_TRIGGER_MODE:
+ priv->trigger = g_value_get_enum (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
@@ -338,6 +341,9 @@ static void uca_mock_camera_get_property(GObject *object, guint property_id, GVa
case PROP_FRAMERATE:
g_value_set_float(value, priv->frame_rate);
break;
+ case PROP_TRIGGER_MODE:
+ g_value_set_enum (value, priv->trigger);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
break;