diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-04-18 13:50:50 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-04-18 13:50:50 +0200 |
commit | a0645d148085269eed23e40500d7b72179c1fe1b (patch) | |
tree | ea399959fc0b0d5aeb8f727848e485c7dc059a28 /src | |
parent | ac4f8fc1751d4f0de33e519c2804c1507238983d (diff) | |
download | uca-a0645d148085269eed23e40500d7b72179c1fe1b.tar.gz uca-a0645d148085269eed23e40500d7b72179c1fe1b.tar.bz2 uca-a0645d148085269eed23e40500d7b72179c1fe1b.tar.xz uca-a0645d148085269eed23e40500d7b72179c1fe1b.zip |
Add not-implemented error for ufo readout
Diffstat (limited to 'src')
-rw-r--r-- | src/cameras/uca-ufo-camera.c | 2 | ||||
-rw-r--r-- | src/uca-camera.c | 1 | ||||
-rw-r--r-- | src/uca-camera.h | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/cameras/uca-ufo-camera.c b/src/cameras/uca-ufo-camera.c index 631144c..f40227b 100644 --- a/src/cameras/uca-ufo-camera.c +++ b/src/cameras/uca-ufo-camera.c @@ -164,6 +164,8 @@ static void uca_ufo_camera_stop_recording(UcaCamera *camera, GError **error) static void uca_ufo_camera_start_readout(UcaCamera *camera, GError **error) { g_return_if_fail(UCA_IS_UFO_CAMERA(camera)); + g_set_error(error, UCA_CAMERA_ERROR, UCA_CAMERA_ERROR_NOT_IMPLEMENTED, + "Ufo camera does not support recording to internal memory"); } static void uca_ufo_camera_grab(UcaCamera *camera, gpointer *data, GError **error) diff --git a/src/uca-camera.c b/src/uca-camera.c index 98e5f49..5a30689 100644 --- a/src/uca-camera.c +++ b/src/uca-camera.c @@ -37,6 +37,7 @@ G_DEFINE_TYPE(UcaCamera, uca_camera, G_TYPE_OBJECT) * @UCA_CAMERA_ERROR_RECORDING: Camera is already recording * @UCA_CAMERA_ERROR_NOT_RECORDING: Camera is not recording * @UCA_CAMERA_ERROR_NO_GRAB_FUNC: No grab callback was set + * @UCA_CAMERA_ERROR_NOT_IMPLEMENTED: Virtual function is not implemented */ GQuark uca_camera_error_quark() { diff --git a/src/uca-camera.h b/src/uca-camera.h index fb703cd..c755fe6 100644 --- a/src/uca-camera.h +++ b/src/uca-camera.h @@ -36,7 +36,8 @@ typedef enum { UCA_CAMERA_ERROR_NOT_FOUND, UCA_CAMERA_ERROR_RECORDING, UCA_CAMERA_ERROR_NOT_RECORDING, - UCA_CAMERA_ERROR_NO_GRAB_FUNC + UCA_CAMERA_ERROR_NO_GRAB_FUNC, + UCA_CAMERA_ERROR_NOT_IMPLEMENTED } UcaCameraError; typedef struct _UcaCamera UcaCamera; |