From f67ca1ef8a7e220084980847c5c466a9ca1b05b1 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 23 Feb 2011 17:19:26 +0100 Subject: Scrap accessor functions and replace with get/set_property --- test/test.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/test.c') 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; -- cgit v1.2.3