diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-23 09:47:34 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-23 09:47:34 +0100 |
commit | 9d29847ed1c2c3a7689151852ec957f789320685 (patch) | |
tree | 64850e78363d7e56b4b72961bd3906d937dc52b4 /src/uca.c | |
parent | d69b1e834cc1558ff117688da7030dabd22099fa (diff) | |
download | libuca-9d29847ed1c2c3a7689151852ec957f789320685.tar.gz libuca-9d29847ed1c2c3a7689151852ec957f789320685.tar.bz2 libuca-9d29847ed1c2c3a7689151852ec957f789320685.tar.xz libuca-9d29847ed1c2c3a7689151852ec957f789320685.zip |
Add a bit of documentation and frame grabber initialization
Diffstat (limited to 'src/uca.c')
-rw-r--r-- | src/uca.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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; } |