diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-23 17:19:26 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-23 17:19:26 +0100 |
commit | f67ca1ef8a7e220084980847c5c466a9ca1b05b1 (patch) | |
tree | 6ab9c3abc11fc8f066f5c01173a2989c34ba36a6 /test | |
parent | aa6ebf67fa2601a5fc087423be3ad40d742e1cd3 (diff) | |
download | uca-f67ca1ef8a7e220084980847c5c466a9ca1b05b1.tar.gz uca-f67ca1ef8a7e220084980847c5c466a9ca1b05b1.tar.bz2 uca-f67ca1ef8a7e220084980847c5c466a9ca1b05b1.tar.xz uca-f67ca1ef8a7e220084980847c5c466a9ca1b05b1.zip |
Scrap accessor functions and replace with get/set_property
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/test.c b/test/test.c index 87e1b21..84df874 100644 --- a/test/test.c +++ b/test/test.c @@ -12,10 +12,13 @@ int main(int argc, char *argv[]) uint32_t width = 2560, height = 2160; - uca->cam_set_dimensions(uca, &width, &height); + uca->cam_set_property(uca, UCA_PROP_WIDTH, &width); + uca->cam_set_property(uca, UCA_PROP_HEIGHT, &height); - if (uca->camera_name != NULL) - printf("Camera name: %s\n", uca->camera_name); + char camera_name[256] = "foobar"; + uca->cam_get_property(uca, UCA_PROP_NAME, camera_name); + + printf("Camera name: %s\n", camera_name); uca_destroy(uca); return 0; |