From 9b70e0b08b3e5e5b22c223b01844572e6f46e27a Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 8 Jun 2018 14:13:51 +0200 Subject: Add UCA_CAMERA_ERROR_DEVICE For device-specific errors which are not covered by specific error codes. --- src/uca-camera.c | 2 ++ src/uca-camera.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/uca-camera.c b/src/uca-camera.c index 99ff51e..48a35b1 100644 --- a/src/uca-camera.c +++ b/src/uca-camera.c @@ -66,6 +66,8 @@ G_DEFINE_TYPE(UcaCamera, uca_camera, G_TYPE_OBJECT) * argument of the write method is not correct. * @UCA_CAMERA_ERROR_TIMEOUT: Generic timeout error * @UCA_CAMERA_ERROR_END_OF_STREAM: Data stream has ended. + * @UCA_CAMERA_ERROR_DEVICE: Device-specific error. This is used if the plugin + * does not use its own error codes. */ GQuark uca_camera_error_quark() { diff --git a/src/uca-camera.h b/src/uca-camera.h index 23d1915..59443b2 100644 --- a/src/uca-camera.h +++ b/src/uca-camera.h @@ -45,7 +45,8 @@ typedef enum { UCA_CAMERA_ERROR_NOT_IMPLEMENTED, UCA_CAMERA_ERROR_WRONG_WRITE_METADATA, UCA_CAMERA_ERROR_END_OF_STREAM, - UCA_CAMERA_ERROR_TIMEOUT + UCA_CAMERA_ERROR_TIMEOUT, + UCA_CAMERA_ERROR_DEVICE, } UcaCameraError; typedef enum { -- cgit v1.2.3