diff options
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; |