diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-23 22:45:13 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-23 22:45:13 +0100 |
commit | f6b63f4957c55107310d092dbf8eecce1e3d12b4 (patch) | |
tree | d08eadd4ef6228abbbfe8391a3849ab405fcabec /src/cameras | |
parent | a6f255cb1dbeeed7e9b7c8f2a2b22de3a5c6028b (diff) | |
download | libuca-f6b63f4957c55107310d092dbf8eecce1e3d12b4.tar.gz libuca-f6b63f4957c55107310d092dbf8eecce1e3d12b4.tar.bz2 libuca-f6b63f4957c55107310d092dbf8eecce1e3d12b4.tar.xz libuca-f6b63f4957c55107310d092dbf8eecce1e3d12b4.zip |
Add new properties and return PROP_INVALID if not available
Diffstat (limited to 'src/cameras')
-rw-r--r-- | src/cameras/uca_pco.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cameras/uca_pco.c b/src/cameras/uca_pco.c index 44ecf95..3155376 100644 --- a/src/cameras/uca_pco.c +++ b/src/cameras/uca_pco.c @@ -70,9 +70,9 @@ static uint32_t uca_pco_set_property(struct uca_t *uca, int32_t property, void * break; default: - break; + return UCA_ERR_PROP_INVALID; } - return 0; + return UCA_NO_ERROR; } static uint32_t uca_pco_get_property(struct uca_t *uca, int32_t property, void *data) @@ -104,9 +104,9 @@ static uint32_t uca_pco_get_property(struct uca_t *uca, int32_t property, void * } default: - break; + return UCA_ERR_PROP_INVALID; } - return 0; + return UCA_NO_ERROR; } uint32_t uca_pco_init(struct uca_t *uca) |