mirror of https://github.com/getdnsapi/getdns.git
Fix signature on clear timeout for extensions
This commit is contained in:
parent
48aacf6c96
commit
d8f8eeca52
|
@ -111,7 +111,7 @@ getdns_libevent_schedule_timeout(struct getdns_context* context,
|
|||
|
||||
static getdns_return_t
|
||||
getdns_libevent_clear_timeout(struct getdns_context* context,
|
||||
void* eventloop_data, void** eventloop_timer) {
|
||||
void* eventloop_data, void* eventloop_timer) {
|
||||
struct event* ev = (struct event*) eventloop_timer;
|
||||
event_del(ev);
|
||||
event_free(ev);
|
||||
|
|
|
@ -99,7 +99,7 @@ getdns_libuv_schedule_timeout(struct getdns_context* context,
|
|||
|
||||
static getdns_return_t
|
||||
getdns_libuv_clear_timeout(struct getdns_context* context,
|
||||
void* eventloop_data, void** eventloop_timer) {
|
||||
void* eventloop_data, void* eventloop_timer) {
|
||||
uv_timer_t* timer = (uv_timer_t*) eventloop_timer;
|
||||
uv_timer_stop(timer);
|
||||
uv_close((uv_handle_t*) timer, getdns_libuv_close_cb);
|
||||
|
|
|
@ -259,7 +259,7 @@ typedef getdns_return_t (*getdns_eventloop_schedule_timeout_t)(struct getdns_con
|
|||
getdns_timeout_data_t* timeout_data,
|
||||
void** eventloop_timer);
|
||||
typedef getdns_return_t (*getdns_eventloop_clear_timeout_t)(struct getdns_context* context,
|
||||
void* eventloop_data, void** eventloop_timer);
|
||||
void* eventloop_data, void* eventloop_timer);
|
||||
|
||||
|
||||
typedef struct getdns_eventloop_extension {
|
||||
|
|
Loading…
Reference in New Issue