From e7e11aff98ff1b8f12f475b4a6691a344c75b478 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 24 Jan 2018 10:22:57 +0100 Subject: mock: provide setter/getter for test-enum --- 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 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; -- cgit v1.2.3