summaryrefslogtreecommitdiffstats
path: root/plugins/mock/uca-mock-camera.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-01-24 10:22:57 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-01-24 10:22:57 +0100
commite7e11aff98ff1b8f12f475b4a6691a344c75b478 (patch)
tree5d3169c0755bd37e4432e7904305319d99d94ee1 /plugins/mock/uca-mock-camera.c
parentbc5b68845666e8373527825d813cd79d4c603139 (diff)
downloaduca-e7e11aff98ff1b8f12f475b4a6691a344c75b478.tar.gz
uca-e7e11aff98ff1b8f12f475b4a6691a344c75b478.tar.bz2
uca-e7e11aff98ff1b8f12f475b4a6691a344c75b478.tar.xz
uca-e7e11aff98ff1b8f12f475b4a6691a344c75b478.zip
mock: provide setter/getter for test-enum
Diffstat (limited to 'plugins/mock/uca-mock-camera.c')
-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 b829e37..8d7aed5 100644
--- a/plugins/mock/uca-mock-camera.c
+++ b/plugins/mock/uca-mock-camera.c
@@ -425,6 +425,9 @@ uca_mock_camera_set_property (GObject *object, guint property_id, const GValue *
case PROP_DEGREE_VALUE:
priv->degree_value = g_value_get_double (value);
break;
+ case PROP_TEST_ENUM:
+ g_debug ("Set test-enum to `%i'", g_value_get_enum (value));
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
return;
@@ -476,6 +479,9 @@ uca_mock_camera_get_property(GObject *object, guint property_id, GValue *value,
case PROP_DEGREE_VALUE:
g_value_set_double (value, priv->degree_value);
break;
+ case PROP_TEST_ENUM:
+ g_value_set_enum (value, 0);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
break;