summaryrefslogtreecommitdiffstats
path: root/pcilib.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-04-14 05:18:18 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-04-14 05:18:18 +0200
commitd7143e0f1ff45449f5e69adc1a42c72eddf642d8 (patch)
treeef7b4d90c487527963e9dbe70a5b218530b4932d /pcilib.h
parentb70ed8b6ccf17a7c5b4339f05a33471eaf3b33e5 (diff)
downloadipecamera-d7143e0f1ff45449f5e69adc1a42c72eddf642d8.tar.gz
ipecamera-d7143e0f1ff45449f5e69adc1a42c72eddf642d8.tar.bz2
ipecamera-d7143e0f1ff45449f5e69adc1a42c72eddf642d8.tar.xz
ipecamera-d7143e0f1ff45449f5e69adc1a42c72eddf642d8.zip
Accept timeout parameter to get_next_event call
Diffstat (limited to 'pcilib.h')
-rw-r--r--pcilib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcilib.h b/pcilib.h
index 360b9a0..9729aa1 100644
--- a/pcilib.h
+++ b/pcilib.h
@@ -134,7 +134,7 @@ typedef struct {
int (*stop)(void *ctx);
int (*trigger)(void *ctx, pcilib_event_t event, size_t trigger_size, void *trigger_data);
- pcilib_event_id_t (*next_event)(void *ctx, pcilib_event_t event_mask);
+ pcilib_event_id_t (*next_event)(void *ctx, pcilib_event_t event_mask, const struct timespec *timeout);
void* (*get_data)(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 (*return_data)(void *ctx, pcilib_event_id_t event_id);
} pcilib_event_api_description_t;
@@ -188,7 +188,7 @@ int pcilib_stop(pcilib_t *ctx);
int pcilib_trigger(pcilib_t *ctx, pcilib_event_t event, size_t trigger_size, void *trigger_data);
-pcilib_event_id_t pcilib_get_next_event(pcilib_t *ctx, pcilib_event_t event_mask);
+pcilib_event_id_t pcilib_get_next_event(pcilib_t *ctx, pcilib_event_t event_mask, const struct timespec *timeout);
void *pcilib_get_data(pcilib_t *ctx, pcilib_event_id_t event_id, pcilib_event_data_type_t data_type, size_t *size);
void *pcilib_get_data_with_argument(pcilib_t *ctx, pcilib_event_id_t event_id, pcilib_event_data_type_t data_type, size_t arg_size, void *arg, size_t *size);
/*