[aravis] fake_device: add an accessor to the FakeCamera object.



commit 11d63710eace04f80f71750e315dd6eb15b745de
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Fri Jun 25 17:05:48 2010 +0200

    fake_device: add an accessor to the FakeCamera object.

 src/arvfakedevice.c |    8 ++++----
 src/arvfakedevice.h |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/arvfakedevice.c b/src/arvfakedevice.c
index b313447..6f47ced 100644
--- a/src/arvfakedevice.c
+++ b/src/arvfakedevice.c
@@ -84,12 +84,12 @@ 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)
+ArvFakeCamera *
+arv_fake_device_get_fake_camera	(ArvFakeDevice *device)
 {
-	g_return_if_fail (ARV_IS_FAKE_DEVICE (device));
+	g_return_val_if_fail (ARV_IS_FAKE_DEVICE (device), NULL);
 
-	arv_fake_camera_set_trigger_frequency (device->priv->camera, frequency);
+	return device->priv->camera;
 }
 
 ArvDevice *
diff --git a/src/arvfakedevice.h b/src/arvfakedevice.h
index 5dfe02f..7ff6932 100644
--- a/src/arvfakedevice.h
+++ b/src/arvfakedevice.h
@@ -52,7 +52,7 @@ GType arv_fake_device_get_type (void);
 
 ArvDevice * 	arv_fake_device_new 			(const char *serial_number);
 
-void		arv_fake_device_set_trigger_frequency	(ArvFakeDevice *device, double frequency);
+ArvFakeCamera *	arv_fake_device_get_fake_camera		(ArvFakeDevice *device);
 
 G_END_DECLS
 



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