7 lines
262 B
C
7 lines
262 B
C
#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);
|