summaryrefslogtreecommitdiffstats
path: root/src/uca.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-01 09:34:21 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-01 09:34:21 +0100
commita92101a277aed63224e1bd2077c99826e9e35f1d (patch)
treee2d38c3dfcfe46b483a13cc35e23f6ed453cf64e /src/uca.h
parent28873ccf3f3f32486049eb40cd639bbab86e09dc (diff)
downloaduca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.gz
uca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.bz2
uca-a92101a277aed63224e1bd2077c99826e9e35f1d.tar.xz
uca-a92101a277aed63224e1bd2077c99826e9e35f1d.zip
Complete (simple) frame grabbing
Diffstat (limited to 'src/uca.h')
-rw-r--r--src/uca.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/uca.h b/src/uca.h
index 5415c90..893d51c 100644
--- a/src/uca.h
+++ b/src/uca.h
@@ -117,12 +117,19 @@ struct uca_property_t {
} type;
};
-
-#define UCA_NO_ERROR 0
-#define UCA_ERR_INIT_NOT_FOUND 1 /**< camera probing or initialization failed */
-#define UCA_ERR_PROP_INVALID 2 /**< the requested property is not supported by the camera */
-#define UCA_ERR_PROP_GENERAL 3 /**< error occured reading/writing the property */
-#define UCA_ERR_PROP_VALUE_OUT_OF_RANGE 4 /**< error occured writing the property */
+enum uca_errors {
+ UCA_NO_ERROR = 0,
+ UCA_ERR_INIT_NOT_FOUND, /**< camera probing or initialization failed */
+ UCA_ERR_PROP_INVALID, /**< the requested property is not supported by the camera */
+ UCA_ERR_PROP_GENERAL, /**< error occured reading/writing the property */
+ UCA_ERR_PROP_VALUE_OUT_OF_RANGE, /**< error occured writing the property */
+
+ UCA_ERR_CAM_ARM,
+ UCA_ERR_CAM_RECORD,
+
+ UCA_ERR_GRABBER_ACQUIRE,
+ UCA_ERR_GRABBER_NOMEM
+};
struct uca_t {
struct uca_camera_t *cameras;