2020-02-29 20:06:40 +00:00
|
|
|
#ifndef WF_TIMER_TIMER_H
|
|
|
|
#define WF_TIMER_TIMER_H
|
|
|
|
|
2020-03-29 15:40:33 +00:00
|
|
|
#include "webfuse/core/timer/on_timer_fn.h"
|
2020-02-29 20:06:40 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct wf_timer;
|
|
|
|
struct wf_timer_manager;
|
|
|
|
|
2020-03-29 15:40:33 +00:00
|
|
|
extern struct wf_timer *
|
2020-02-29 20:06:40 +00:00
|
|
|
wf_timer_create(
|
|
|
|
struct wf_timer_manager * manager,
|
|
|
|
wf_timer_on_timer_fn * on_timer,
|
|
|
|
void * user_data);
|
|
|
|
|
2020-03-29 15:40:33 +00:00
|
|
|
extern void
|
2020-02-29 20:06:40 +00:00
|
|
|
wf_timer_dispose(
|
|
|
|
struct wf_timer * timer);
|
|
|
|
|
2020-03-29 15:40:33 +00:00
|
|
|
extern void
|
2020-02-29 20:06:40 +00:00
|
|
|
wf_timer_start(
|
|
|
|
struct wf_timer * timer,
|
|
|
|
int timeout_ms);
|
|
|
|
|
2020-03-29 15:40:33 +00:00
|
|
|
extern void
|
2020-02-29 20:06:40 +00:00
|
|
|
wf_timer_cancel(
|
|
|
|
struct wf_timer * timer);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|