diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-04-12 02:57:02 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-04-12 02:57:02 +0200 |
commit | 39b33ce4be920b19a6b0f694febf8609ae64512b (patch) | |
tree | fc058356c3417c871e09bc377243ab3f9b89999a /ipecamera/image.h | |
parent | ee6ea2f21e2516047db66004fda060a23b152103 (diff) | |
download | pcitool-39b33ce4be920b19a6b0f694febf8609ae64512b.tar.gz pcitool-39b33ce4be920b19a6b0f694febf8609ae64512b.tar.bz2 pcitool-39b33ce4be920b19a6b0f694febf8609ae64512b.tar.xz pcitool-39b33ce4be920b19a6b0f694febf8609ae64512b.zip |
Infrastructure for event API
Diffstat (limited to 'ipecamera/image.h')
-rw-r--r-- | ipecamera/image.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ipecamera/image.h b/ipecamera/image.h new file mode 100644 index 0000000..d174b95 --- /dev/null +++ b/ipecamera/image.h @@ -0,0 +1,22 @@ +#ifndef _IPECAMERA_IMAGE_H +#define _IPECAMERA_IMAGE_H + +#include <stdio.h> + +#include "pcilib.h" + +typedef struct ipecamera_s ipecamera_t; + +void *ipecamera_init(pcilib_t *pcilib); +void ipecamera_free(void *ctx); + +int ipecamera_reset(void *ctx); +int ipecamera_start(void *ctx, pcilib_event_t event_mask, pcilib_callback_t cb, void *user); +int ipecamera_stop(void *ctx); +int ipecamera_trigger(void *ctx, pcilib_event_t event, size_t trigger_size, void *trigger_data); + +void* ipecamera_get(void *ctx, pcilib_event_id_t event_id, pcilib_event_data_type_t data_type, size_t *size); +int ipecamera_return(void *ctx, pcilib_event_id_t event_id); + + +#endif /* _IPECAMERA_IMAGE_H */ |