summaryrefslogtreecommitdiffstats
path: root/test/grab-async.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-04-26 17:20:03 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-04-26 17:20:03 +0200
commitbf265341fea65c31992497338eccfab5bfdf217f (patch)
tree6937b7e1383a44014256833545e7b79a22a878a2 /test/grab-async.c
parent56d716f47fac506ccaca0cdd934dc2bc1ee6644a (diff)
downloaduca-bf265341fea65c31992497338eccfab5bfdf217f.tar.gz
uca-bf265341fea65c31992497338eccfab5bfdf217f.tar.bz2
uca-bf265341fea65c31992497338eccfab5bfdf217f.tar.xz
uca-bf265341fea65c31992497338eccfab5bfdf217f.zip
Make uca_camera really private and thus breaks API
Diffstat (limited to 'test/grab-async.c')
-rw-r--r--test/grab-async.c16
1 files changed, 8 insertions, 8 deletions
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);