From a92101a277aed63224e1bd2077c99826e9e35f1d Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 1 Mar 2011 09:34:21 +0100 Subject: Complete (simple) frame grabbing --- src/uca.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'src/uca.h') 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; -- cgit v1.2.3