From 35681d4e1d171117c9d4c2c4fd7d474b5871f81f Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 17 Mar 2011 11:44:08 +0100 Subject: Rename struct_name_t to struct_name and create typedefs --- test/grab.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/grab.c') diff --git a/test/grab.c b/test/grab.c index 2994689..446a117 100644 --- a/test/grab.c +++ b/test/grab.c @@ -6,14 +6,14 @@ int main(int argc, char *argv[]) { - struct uca_t *uca = uca_init(NULL); - if (uca == NULL) { + struct uca *u = uca_init(NULL); + if (u == NULL) { printf("Couldn't find a camera\n"); return 1; } /* take first camera */ - struct uca_camera_t *cam = uca->cameras; + struct uca_camera *cam = u->cameras; uint32_t val = 1; cam->set_property(cam, UCA_PROP_EXPOSURE, &val); @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) cam->start_recording(cam); cam->grab(cam, (char *) buffer); cam->stop_recording(cam); - uca_destroy(uca); + uca_destroy(u); FILE *fp = fopen("out.raw", "wb"); fwrite(buffer, width*height, pixel_size, fp); -- cgit v1.2.3