From b448763e0b4a0b7fec4861aaf1b3a709bcecad2b Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 18 Feb 2013 09:50:03 +0100 Subject: Implement reading and writing of trigger mode --- plugins/mock/uca-mock-camera.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins') 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; -- cgit v1.2.3