Skip to content

Commit

Permalink
mock: provide setter/getter for test-enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Vogelgesang committed Jan 24, 2018
1 parent bc5b688 commit e7e11af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/mock/uca-mock-camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e7e11af

Please sign in to comment.