[aravis] fake: add function for setting fake external trigger frequency.



commit 7ac6ccac1d4cbcc08f152efe02771f756fcc2dde
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Fri Jun 25 15:01:37 2010 +0200

    fake: add function for setting fake external trigger frequency.

 src/arvfakecamera.h |    1 +
 src/arvfakedevice.c |    8 ++++++++
 src/arvfakedevice.h |    4 +++-
 3 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/src/arvfakecamera.h b/src/arvfakecamera.h
index 47c4fbc..b7772ca 100644
--- a/src/arvfakecamera.h
+++ b/src/arvfakecamera.h
@@ -122,6 +122,7 @@ guint32		arv_fake_camera_get_heartbeat_timeout		(ArvFakeCamera *camera);
 void		arv_fake_camera_set_fill_pattern	(ArvFakeCamera *camera,
 							 ArvFakeCameraFillPattern fill_pattern,
 							 void *fill_pattern_data);
+void 		arv_fake_camera_set_trigger_frequency 	(ArvFakeCamera *camera, double frequency);
 
 void 		arv_set_fake_camera_genicam_filename 	(const char *filename);
 const char *	arv_get_fake_camera_genicam_data	(size_t *size);
diff --git a/src/arvfakedevice.c b/src/arvfakedevice.c
index 37de99c..b313447 100644
--- a/src/arvfakedevice.c
+++ b/src/arvfakedevice.c
@@ -84,6 +84,14 @@ arv_fake_device_write_register (ArvDevice *device, guint32 address, guint32 valu
 	return arv_fake_camera_write_register (ARV_FAKE_DEVICE (device)->priv->camera, address, value);
 }
 
+void
+arv_fake_device_set_trigger_frequency (ArvFakeDevice *device, double frequency)
+{
+	g_return_if_fail (ARV_IS_FAKE_DEVICE (device));
+
+	arv_fake_camera_set_trigger_frequency (device->priv->camera, frequency);
+}
+
 ArvDevice *
 arv_fake_device_new (const char *serial_number)
 {
diff --git a/src/arvfakedevice.h b/src/arvfakedevice.h
index e9c344e..5dfe02f 100644
--- a/src/arvfakedevice.h
+++ b/src/arvfakedevice.h
@@ -50,7 +50,9 @@ struct _ArvFakeDeviceClass {
 
 GType arv_fake_device_get_type (void);
 
-ArvDevice * 		arv_fake_device_new 		(const char *serial_number);
+ArvDevice * 	arv_fake_device_new 			(const char *serial_number);
+
+void		arv_fake_device_set_trigger_frequency	(ArvFakeDevice *device, double frequency);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]