From 98511f7a77e7b37f9508b66298d99d7d1103e422 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 15 Mar 2011 15:58:47 +0100 Subject: Add grabber documentation and callback registration --- src/grabbers/me4.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/grabbers/me4.c') 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; -- cgit v1.2.3