1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
falk-werner_webfuse-provider/lib/webfuse_provider/impl/timer/timer.h

38 lines
580 B
C
Raw Normal View History

#ifndef WFP_TIMER_TIMER_H
#define WFP_TIMER_TIMER_H
2020-06-16 21:39:45 +00:00
#include "webfuse_provider/impl/timer/on_timer_fn.h"
#ifdef __cplusplus
extern "C"
{
#endif
struct wfp_timer;
struct wfp_timer_manager;
extern struct wfp_timer *
wfp_timer_create(
struct wfp_timer_manager * manager,
wfp_timer_on_timer_fn * on_timer,
void * user_data);
extern void
wfp_timer_dispose(
struct wfp_timer * timer);
extern void
wfp_timer_start(
struct wfp_timer * timer,
int timeout_ms);
extern void
wfp_timer_cancel(
struct wfp_timer * timer);
#ifdef __cplusplus
}
#endif
#endif