From bf265341fea65c31992497338eccfab5bfdf217f Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 26 Apr 2011 17:20:03 +0200 Subject: Make uca_camera really private and thus breaks API --- test/grab-async.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/grab-async.c') diff --git a/test/grab-async.c b/test/grab-async.c index 058ec3f..a6e6e65 100644 --- a/test/grab-async.c +++ b/test/grab-async.c @@ -37,22 +37,22 @@ int main(int argc, char *argv[]) struct uca_camera *cam = u->cameras; uint32_t val = 5000; - cam->set_property(cam, UCA_PROP_EXPOSURE, &val); + uca_cam_set_property(cam, UCA_PROP_EXPOSURE, &val); val = 0; - cam->set_property(cam, UCA_PROP_DELAY, &val); + uca_cam_set_property(cam, UCA_PROP_DELAY, &val); struct image_props props; - cam->get_property(cam, UCA_PROP_WIDTH, &props.width, 0); - cam->get_property(cam, UCA_PROP_HEIGHT, &props.height, 0); - cam->get_property(cam, UCA_PROP_BITDEPTH, &props.bits, 0); + uca_cam_get_property(cam, UCA_PROP_WIDTH, &props.width, 0); + uca_cam_get_property(cam, UCA_PROP_HEIGHT, &props.height, 0); + uca_cam_get_property(cam, UCA_PROP_BITDEPTH, &props.bits, 0); uca_cam_alloc(cam, 10); - cam->register_callback(cam, &grab_callback, &props); - cam->start_recording(cam); + uca_cam_register_callback(cam, &grab_callback, &props); + uca_cam_start_recording(cam); printf("grabbing for 2 seconds\n"); sleep(2); - cam->stop_recording(cam); + uca_cam_stop_recording(cam); printf("done\n"); fflush(stdout); -- cgit v1.2.3