summaryrefslogtreecommitdiffstats
path: root/src/uca-camera.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-05 17:20:27 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-05 17:20:27 +0100
commit03739354e074c547d99a6992a7774c3643d17da1 (patch)
tree37091acf1b6101493f9243fbd5b5201be951fdce /src/uca-camera.h
parent0483c86add2f496021560b82476d22e2497006be (diff)
downloadlibuca-03739354e074c547d99a6992a7774c3643d17da1.tar.gz
libuca-03739354e074c547d99a6992a7774c3643d17da1.tar.bz2
libuca-03739354e074c547d99a6992a7774c3643d17da1.tar.xz
libuca-03739354e074c547d99a6992a7774c3643d17da1.zip
Add factory method to create new cameras
Diffstat (limited to 'src/uca-camera.h')
-rw-r--r--src/uca-camera.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uca-camera.h b/src/uca-camera.h
index 0370466..44770f1 100644
--- a/src/uca-camera.h
+++ b/src/uca-camera.h
@@ -29,6 +29,7 @@
#define UCA_CAMERA_ERROR uca_camera_error_quark()
typedef enum {
+ UCA_CAMERA_ERROR_NOT_FOUND,
UCA_CAMERA_ERROR_RECORDING,
UCA_CAMERA_ERROR_NOT_RECORDING,
UCA_CAMERA_ERROR_NO_GRAB_FUNC
@@ -74,6 +75,9 @@ struct _UcaCameraClass {
void (*recording_stopped) (UcaCamera *camera);
};
+gchar **uca_camera_get_types();
+UcaCamera *uca_camera_new(const gchar *type, GError **error);
+
void uca_camera_start_recording(UcaCamera *camera, GError **error);
void uca_camera_stop_recording(UcaCamera *camera, GError **error);
void uca_camera_grab(UcaCamera *camera, gpointer data, GError **error);