summaryrefslogtreecommitdiffstats
path: root/src/uca.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-23 09:47:34 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-23 09:47:34 +0100
commit9d29847ed1c2c3a7689151852ec957f789320685 (patch)
tree64850e78363d7e56b4b72961bd3906d937dc52b4 /src/uca.c
parentd69b1e834cc1558ff117688da7030dabd22099fa (diff)
downloaduca-9d29847ed1c2c3a7689151852ec957f789320685.tar.gz
uca-9d29847ed1c2c3a7689151852ec957f789320685.tar.bz2
uca-9d29847ed1c2c3a7689151852ec957f789320685.tar.xz
uca-9d29847ed1c2c3a7689151852ec957f789320685.zip
Add a bit of documentation and frame grabber initialization
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;
}