From 648153f98c95f07c751f61a746c8a1807d7860c0 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Mon, 6 Oct 2014 16:10:09 +0200 Subject: [PATCH] Timeouts are 64 bits --- src/context.c | 2 +- src/context.h | 2 +- src/extension/libev.c | 2 +- src/extension/libevent.c | 2 +- src/extension/libuv.c | 2 +- src/getdns/getdns_extra.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/context.c b/src/context.c index 16667bb4..78797608 100755 --- a/src/context.c +++ b/src/context.c @@ -1992,7 +1992,7 @@ getdns_extension_set_eventloop(struct getdns_context* context, getdns_return_t getdns_context_schedule_timeout(struct getdns_context* context, - getdns_transaction_t id, uint16_t timeout, getdns_timeout_callback callback, + getdns_transaction_t id, uint64_t timeout, getdns_timeout_callback callback, void* userarg) { RETURN_IF_NULL(context, GETDNS_RETURN_INVALID_PARAMETER); RETURN_IF_NULL(callback, GETDNS_RETURN_INVALID_PARAMETER); diff --git a/src/context.h b/src/context.h index eb7d54aa..b49bfc37 100755 --- a/src/context.h +++ b/src/context.h @@ -192,7 +192,7 @@ void getdns_bindata_destroy( /* timeout scheduling */ getdns_return_t getdns_context_schedule_timeout(struct getdns_context* context, - getdns_transaction_t id, uint16_t timeout, getdns_timeout_callback callback, + getdns_transaction_t id, uint64_t timeout, getdns_timeout_callback callback, void* userarg); getdns_return_t getdns_context_clear_timeout(struct getdns_context* context, diff --git a/src/extension/libev.c b/src/extension/libev.c index 61e237d9..78e0bf0e 100644 --- a/src/extension/libev.c +++ b/src/extension/libev.c @@ -101,7 +101,7 @@ getdns_libev_cleanup(struct getdns_context* context, void* data) { static getdns_return_t getdns_libev_schedule_timeout(struct getdns_context* context, - void* eventloop_data, uint16_t timeout, + void* eventloop_data, uint64_t timeout, getdns_timeout_data_t* timeout_data, void** eventloop_timer) { diff --git a/src/extension/libevent.c b/src/extension/libevent.c index e42d6a10..8281421d 100644 --- a/src/extension/libevent.c +++ b/src/extension/libevent.c @@ -121,7 +121,7 @@ getdns_libevent_cleanup(struct getdns_context* context, void* data) { static getdns_return_t getdns_libevent_schedule_timeout(struct getdns_context* context, - void* eventloop_data, uint16_t timeout, + void* eventloop_data, uint64_t timeout, getdns_timeout_data_t* timeout_data, void** eventloop_timer) { diff --git a/src/extension/libuv.c b/src/extension/libuv.c index 687ae9bb..6c0b4a3c 100644 --- a/src/extension/libuv.c +++ b/src/extension/libuv.c @@ -103,7 +103,7 @@ getdns_libuv_cleanup(struct getdns_context* context, void* data) { static getdns_return_t getdns_libuv_schedule_timeout(struct getdns_context* context, - void* eventloop_data, uint16_t timeout, + void* eventloop_data, uint64_t timeout, getdns_timeout_data_t* timeout_data, void** eventloop_timer) { diff --git a/src/getdns/getdns_extra.h b/src/getdns/getdns_extra.h index 3d6be12b..1257a490 100644 --- a/src/getdns/getdns_extra.h +++ b/src/getdns/getdns_extra.h @@ -88,7 +88,7 @@ typedef getdns_return_t (*getdns_eventloop_cleanup_t)(struct getdns_context* con /* call the extension to schedule a timer. Any timer data that needs to be tracked should be stored in eventloop_timer */ typedef getdns_return_t (*getdns_eventloop_schedule_timeout_t)(struct getdns_context* context, - void* eventloop_data, uint16_t timeout, + void* eventloop_data, uint64_t timeout, getdns_timeout_data_t* timeout_data, void** eventloop_timer);