diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-03-05 17:20:27 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-03-05 17:20:27 +0100 |
commit | 03739354e074c547d99a6992a7774c3643d17da1 (patch) | |
tree | 37091acf1b6101493f9243fbd5b5201be951fdce /src/uca-camera.h | |
parent | 0483c86add2f496021560b82476d22e2497006be (diff) | |
download | uca-03739354e074c547d99a6992a7774c3643d17da1.tar.gz uca-03739354e074c547d99a6992a7774c3643d17da1.tar.bz2 uca-03739354e074c547d99a6992a7774c3643d17da1.tar.xz uca-03739354e074c547d99a6992a7774c3643d17da1.zip |
Add factory method to create new cameras
Diffstat (limited to 'src/uca-camera.h')
-rw-r--r-- | src/uca-camera.h | 4 |
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); |