summaryrefslogtreecommitdiffstats
path: root/src/grabbers
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-15 15:58:47 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-15 15:58:47 +0100
commit98511f7a77e7b37f9508b66298d99d7d1103e422 (patch)
treecade4dd76adea2d081147aa8811ea8c11e07f8fa /src/grabbers
parent45290e0c8d2bb0750fb5d78414477aefa5d28c5c (diff)
downloaduca-98511f7a77e7b37f9508b66298d99d7d1103e422.tar.gz
uca-98511f7a77e7b37f9508b66298d99d7d1103e422.tar.bz2
uca-98511f7a77e7b37f9508b66298d99d7d1103e422.tar.xz
uca-98511f7a77e7b37f9508b66298d99d7d1103e422.zip
Add grabber documentation and callback registration
Diffstat (limited to 'src/grabbers')
-rw-r--r--src/grabbers/me4.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/grabbers/me4.c b/src/grabbers/me4.c
index f588298..d6419e0 100644
--- a/src/grabbers/me4.c
+++ b/src/grabbers/me4.c
@@ -145,9 +145,16 @@ uint32_t uca_me4_grab(struct uca_grabber_t *grabber, void **buffer)
return UCA_NO_ERROR;
}
+uint32_t uca_me4_register_callback(struct uca_grabber_t *grabber, uca_grabber_grab_callback cb)
+{
+ grabber->callback = cb;
+
+ /* TODO: add me4 registerApc stuff */
+ return UCA_NO_ERROR;
+}
+
uint32_t uca_me4_init(struct uca_grabber_t **grabber)
{
- /* FIXME: find out if this board/grabber is running */
Fg_Struct *fg = Fg_Init("libFullAreaGray8.so", 0);
if (fg == NULL)
return UCA_ERR_GRABBER_NOT_FOUND;
@@ -165,6 +172,7 @@ uint32_t uca_me4_init(struct uca_grabber_t **grabber)
uca->acquire = &uca_me4_acquire;
uca->stop_acquire = &uca_me4_stop_acquire;
uca->grab = &uca_me4_grab;
+ uca->callback = NULL;
*grabber = uca;
return UCA_NO_ERROR;