From 9d29847ed1c2c3a7689151852ec957f789320685 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 23 Feb 2011 09:47:34 +0100 Subject: Add a bit of documentation and frame grabber initialization --- src/uca.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/uca.c') diff --git a/src/uca.c b/src/uca.c index af934c8..facccb4 100644 --- a/src/uca.c +++ b/src/uca.c @@ -30,6 +30,14 @@ struct uca_t *uca_init() #endif NULL }; + /* Set all function pointers to NULL and thus make the class abstract */ + uca->cam_destroy = NULL; + uca->cam_set_dimensions = NULL; + uca->cam_set_bitdepth = NULL; + uca->cam_set_delay = NULL; + uca->cam_set_exposure = NULL; + uca->cam_acquire_image = NULL; + int i = 0; while (inits[i] != NULL) { uca_cam_init init = inits[i]; @@ -38,7 +46,7 @@ struct uca_t *uca_init() i++; } - /* No camera found then return nothing */ + /* No camera found then indicate error */ free(uca); return NULL; } -- cgit v1.2.3