summaryrefslogtreecommitdiffstats
path: root/src/uca.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uca.c')
-rw-r--r--src/uca.c10
1 files changed, 9 insertions, 1 deletions
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;
}