diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-04-14 17:06:12 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-04-14 17:06:12 +0200 |
commit | a178ae6180e4844e89f6e040cbf040fed5f4df6a (patch) | |
tree | 016ec939606350b55f283a334e93c437ceb54aaa /ipecamera/image.h | |
parent | d7143e0f1ff45449f5e69adc1a42c72eddf642d8 (diff) | |
download | ipecamera-a178ae6180e4844e89f6e040cbf040fed5f4df6a.tar.gz ipecamera-a178ae6180e4844e89f6e040cbf040fed5f4df6a.tar.bz2 ipecamera-a178ae6180e4844e89f6e040cbf040fed5f4df6a.tar.xz ipecamera-a178ae6180e4844e89f6e040cbf040fed5f4df6a.zip |
Introduce pcilib_context_t type instead pointer to void
Diffstat (limited to 'ipecamera/image.h')
-rw-r--r-- | ipecamera/image.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ipecamera/image.h b/ipecamera/image.h index 245e450..0418be4 100644 --- a/ipecamera/image.h +++ b/ipecamera/image.h @@ -6,17 +6,17 @@ #include "ipecamera.h" #include "pcilib.h" -void *ipecamera_init(pcilib_t *pcilib); -void ipecamera_free(void *ctx); +pcilib_context_t *ipecamera_init(pcilib_t *pcilib); +void ipecamera_free(pcilib_context_t *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); -pcilib_event_id_t ipecamera_next_event(void *ctx, pcilib_event_t event_mask, const struct timespec *timeout); +int ipecamera_reset(pcilib_context_t *ctx); +int ipecamera_start(pcilib_context_t *ctx, pcilib_event_t event_mask, pcilib_callback_t cb, void *user); +int ipecamera_stop(pcilib_context_t *ctx); +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, const struct timespec *timeout); -void* ipecamera_get(void *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(void *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); +int ipecamera_return(pcilib_context_t *ctx, pcilib_event_id_t event_id); |