summaryrefslogtreecommitdiffstats
path: root/src/uca-camera.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-01 17:23:14 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-01 17:23:14 +0100
commite26a093b4036083f13265bcbde5eae442d502377 (patch)
tree1fd30bbeba4eb7c7ee6d1c6d4f5e9593f30882da /src/uca-camera.c
parentb29c78f818ac92f42621c69c29736fe5c8e32c6f (diff)
downloadlibuca-e26a093b4036083f13265bcbde5eae442d502377.tar.gz
libuca-e26a093b4036083f13265bcbde5eae442d502377.tar.bz2
libuca-e26a093b4036083f13265bcbde5eae442d502377.tar.xz
libuca-e26a093b4036083f13265bcbde5eae442d502377.zip
First draft at clean pco object construction
Diffstat (limited to 'src/uca-camera.c')
-rw-r--r--src/uca-camera.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/uca-camera.c b/src/uca-camera.c
index 9fa0666..cb7890b 100644
--- a/src/uca-camera.c
+++ b/src/uca-camera.c
@@ -77,7 +77,7 @@ static void uca_camera_default_init(UcaCameraInterface *klass)
g_object_interface_install_property(klass, uca_camera_properties[i]);
}
-void uca_camera_start_recording(UcaCamera *camera)
+void uca_camera_start_recording(UcaCamera *camera, GError **error)
{
g_return_if_fail(UCA_IS_CAMERA(camera));
@@ -86,10 +86,10 @@ void uca_camera_start_recording(UcaCamera *camera)
g_return_if_fail(iface != NULL);
g_return_if_fail(iface->start_recording != NULL);
- (*iface->start_recording)(camera);
+ (*iface->start_recording)(camera, error);
}
-void uca_camera_stop_recording(UcaCamera *camera)
+void uca_camera_stop_recording(UcaCamera *camera, GError **error)
{
g_return_if_fail(UCA_IS_CAMERA(camera));
@@ -98,10 +98,10 @@ void uca_camera_stop_recording(UcaCamera *camera)
g_return_if_fail(iface != NULL);
g_return_if_fail(iface->start_recording != NULL);
- (*iface->stop_recording)(camera);
+ (*iface->stop_recording)(camera, error);
}
-void uca_camera_grab(UcaCamera *camera, gchar *data)
+void uca_camera_grab(UcaCamera *camera, gchar *data, GError **error)
{
g_return_if_fail(UCA_IS_CAMERA(camera));
@@ -110,6 +110,6 @@ void uca_camera_grab(UcaCamera *camera, gchar *data)
g_return_if_fail(iface != NULL);
g_return_if_fail(iface->start_recording != NULL);
- (*iface->grab)(camera, data);
+ (*iface->grab)(camera, data, error);
}