summaryrefslogtreecommitdiffstats
path: root/test/grab.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-17 11:44:08 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-17 11:44:08 +0100
commit35681d4e1d171117c9d4c2c4fd7d474b5871f81f (patch)
tree9abb180d6e35a961e7e798b08101fef59cab6c18 /test/grab.c
parent5b80e3c687fb2b47b06d9ffe6ac07bec475d812a (diff)
downloaduca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.tar.gz
uca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.tar.bz2
uca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.tar.xz
uca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.zip
Rename struct_name_t to struct_name and create typedefs
Diffstat (limited to 'test/grab.c')
-rw-r--r--test/grab.c8
1 files changed, 4 insertions, 4 deletions
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);