tor_multipath_voip/src/timer.h

8 lines
262 B
C
Raw Normal View History

2019-05-07 17:18:27 +00:00
#pragma once
#include <sys/timerfd.h>
#include "evt_core.h"
typedef void (*timer_cb)(struct evt_core_ctx* ctx, void* user_data);
void init_timer(struct evt_core_ctx* evts);
int set_timeout(struct evt_core_ctx* evts, uint64_t milli_sec, void* ctx, timer_cb cb);