summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-08 14:13:51 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-08 14:13:51 +0200
commit9b70e0b08b3e5e5b22c223b01844572e6f46e27a (patch)
tree0238028bba91d2bf526274c733980dd983d770ab
parent372694dddbf64db056154290405186da34580aaa (diff)
downloaduca-9b70e0b08b3e5e5b22c223b01844572e6f46e27a.tar.gz
uca-9b70e0b08b3e5e5b22c223b01844572e6f46e27a.tar.bz2
uca-9b70e0b08b3e5e5b22c223b01844572e6f46e27a.tar.xz
uca-9b70e0b08b3e5e5b22c223b01844572e6f46e27a.zip
Add UCA_CAMERA_ERROR_DEVICE
For device-specific errors which are not covered by specific error codes.
-rw-r--r--src/uca-camera.c2
-rw-r--r--src/uca-camera.h3
2 files changed, 4 insertions, 1 deletions
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 {