diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-07 17:28:07 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-07 17:28:07 +0100 |
commit | 923dab046564bdfcd7267281b99462f6d866d311 (patch) | |
tree | 84ae5326b05d0ca069aafc7ebc231e24d9a19a4a /test/enum.c | |
parent | 1b9734e1c19a7d3149013005502349eb2b9cd402 (diff) | |
download | uca-923dab046564bdfcd7267281b99462f6d866d311.tar.gz uca-923dab046564bdfcd7267281b99462f6d866d311.tar.bz2 uca-923dab046564bdfcd7267281b99462f6d866d311.tar.xz uca-923dab046564bdfcd7267281b99462f6d866d311.zip |
Add property listing
Diffstat (limited to 'test/enum.c')
-rw-r--r-- | test/enum.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/enum.c b/test/enum.c index 4c21f12..8803ec4 100644 --- a/test/enum.c +++ b/test/enum.c @@ -34,10 +34,6 @@ int main(int argc, char *argv[]) uint32_t uint32_value; uint8_t uint8_value; - const char *unit_map[] = { - "px", "bits", "ns", "µs", "ms", "s", "rows", "" - }; - while (cam != NULL) { for (int i = 0; i < UCA_PROP_LAST; i++) { struct uca_property_t *prop = uca_get_full_property(i); @@ -53,14 +49,14 @@ int main(int argc, char *argv[]) break; case uca_uint32t: if (cam->get_property(cam, i, &uint32_value) != UCA_ERR_PROP_INVALID) { - printf("%i %s", uint32_value, unit_map[prop->unit]); + printf("%i %s", uint32_value, uca_unit_map[prop->unit]); } else printf("n/a"); break; case uca_uint8t: if (cam->get_property(cam, i, &uint8_value) != UCA_ERR_PROP_INVALID) { - printf("%i %s", uint8_value, unit_map[prop->unit]); + printf("%i %s", uint8_value, uca_unit_map[prop->unit]); } else printf("n/a"); |