diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-04-14 05:18:18 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-04-14 05:18:18 +0200 |
commit | d7143e0f1ff45449f5e69adc1a42c72eddf642d8 (patch) | |
tree | ef7b4d90c487527963e9dbe70a5b218530b4932d /pci.c | |
parent | b70ed8b6ccf17a7c5b4339f05a33471eaf3b33e5 (diff) | |
download | pcitool-d7143e0f1ff45449f5e69adc1a42c72eddf642d8.tar.gz pcitool-d7143e0f1ff45449f5e69adc1a42c72eddf642d8.tar.bz2 pcitool-d7143e0f1ff45449f5e69adc1a42c72eddf642d8.tar.xz pcitool-d7143e0f1ff45449f5e69adc1a42c72eddf642d8.zip |
Accept timeout parameter to get_next_event call
Diffstat (limited to 'pci.c')
-rw-r--r-- | pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -688,7 +688,7 @@ int pcilib_stop(pcilib_t *ctx) { return 0; } -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) { pcilib_event_api_description_t *api; pcilib_model_t model = pcilib_get_model(ctx); @@ -700,7 +700,7 @@ pcilib_event_id_t pcilib_get_next_event(pcilib_t *ctx, pcilib_event_t event_mask } if (api->next_event) - return api->next_event(ctx->event_ctx, event_mask); + return api->next_event(ctx->event_ctx, event_mask, timeout); pcilib_error("Event enumeration is not suppored by API"); return PCILIB_EVENT_ID_INVALID; |