diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-02-15 17:57:01 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-02-15 17:57:01 +0100 |
commit | c7f50c550fea47b7b089fec9cd6120a328a0349f (patch) | |
tree | a105da524a02e23471ed97c87c093cb2bbe3fd38 /plugins/mock | |
parent | b93ce16e227d3247fea2f2178b3f8f6756a3ac50 (diff) | |
download | libuca-c7f50c550fea47b7b089fec9cd6120a328a0349f.tar.gz libuca-c7f50c550fea47b7b089fec9cd6120a328a0349f.tar.bz2 libuca-c7f50c550fea47b7b089fec9cd6120a328a0349f.tar.xz libuca-c7f50c550fea47b7b089fec9cd6120a328a0349f.zip |
Add "trigger mode" to mock camera
Diffstat (limited to 'plugins/mock')
-rw-r--r-- | plugins/mock/uca-mock-camera.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/mock/uca-mock-camera.c b/plugins/mock/uca-mock-camera.c index 13bdd51..05393d1 100644 --- a/plugins/mock/uca-mock-camera.c +++ b/plugins/mock/uca-mock-camera.c @@ -38,6 +38,7 @@ static const gint mock_overrideables[] = { PROP_SENSOR_VERTICAL_BINNING, PROP_SENSOR_VERTICAL_BINNINGS, PROP_EXPOSURE_TIME, + PROP_TRIGGER_MODE, PROP_ROI_X, PROP_ROI_Y, PROP_ROI_WIDTH, @@ -224,6 +225,10 @@ static void uca_mock_camera_stop_recording(UcaCamera *camera, GError **error) } } +static void uca_mock_camera_trigger (UcaCamera *camera, GError **error) +{ +} + static void uca_mock_camera_grab(UcaCamera *camera, gpointer *data, GError **error) { g_return_if_fail(UCA_IS_MOCK_CAMERA(camera)); @@ -263,6 +268,8 @@ static void uca_mock_camera_set_property(GObject *object, guint property_id, con case PROP_ROI_HEIGHT: priv->roi_height = g_value_get_uint(value); break; + case PROP_TRIGGER_MODE: + break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); return; @@ -363,6 +370,7 @@ static void uca_mock_camera_class_init(UcaMockCameraClass *klass) camera_class->start_recording = uca_mock_camera_start_recording; camera_class->stop_recording = uca_mock_camera_stop_recording; camera_class->grab = uca_mock_camera_grab; + camera_class->trigger = uca_mock_camera_trigger; for (guint i = 0; mock_overrideables[i] != 0; i++) g_object_class_override_property(gobject_class, mock_overrideables[i], uca_camera_props[mock_overrideables[i]]); |