From 869ed99dbc3a645fee6de36e97e1e12127068f10 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 8 Dec 2011 03:47:23 +0100 Subject: new event architecture, first trial --- ipecamera/image.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ipecamera/image.h') diff --git a/ipecamera/image.h b/ipecamera/image.h index b414f74..c311b4d 100644 --- a/ipecamera/image.h +++ b/ipecamera/image.h @@ -10,13 +10,14 @@ pcilib_context_t *ipecamera_init(pcilib_t *pcilib); void ipecamera_free(pcilib_context_t *ctx); int ipecamera_reset(pcilib_context_t *ctx); -int ipecamera_start(pcilib_context_t *ctx, pcilib_event_t event_mask, pcilib_event_callback_t cb, void *user); -int ipecamera_stop(pcilib_context_t *ctx); +int ipecamera_start(pcilib_context_t *ctx, pcilib_event_t event_mask, pcilib_event_flags_t flags); +int ipecamera_stop(pcilib_context_t *ctx, pcilib_event_flags_t flags); int ipecamera_trigger(pcilib_context_t *ctx, pcilib_event_t event, size_t trigger_size, void *trigger_data); -pcilib_event_id_t ipecamera_next_event(pcilib_context_t *ctx, pcilib_event_t event_mask, pcilib_timeout_t timeout); +int ipecamera_stream(pcilib_context_t *vctx, pcilib_event_callback_t callback, void *user); +//pcilib_event_id_t ipecamera_next_event(pcilib_context_t *ctx, pcilib_event_t event_mask, pcilib_timeout_t timeout); -void* ipecamera_get(pcilib_context_t *ctx, pcilib_event_id_t event_id, pcilib_event_data_type_t data_type, size_t arg_size, void *arg, size_t *size); -int ipecamera_return(pcilib_context_t *ctx, pcilib_event_id_t event_id); +void* ipecamera_get(pcilib_context_t *ctx, pcilib_event_id_t event_id, pcilib_event_data_type_t data_type, size_t arg_size, void *arg, size_t *size, void *buf); +int ipecamera_return(pcilib_context_t *ctx, pcilib_event_id_t event_id, void *data); pcilib_dma_context_t *ipecamera_init_dma(pcilib_context_t *ctx); -- cgit v1.2.3