You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
557 B
38 lines
557 B
5 years ago
|
#ifndef WF_TIMER_TIMER_H
|
||
|
#define WF_TIMER_TIMER_H
|
||
|
|
||
5 years ago
|
#include "webfuse/core/timer/on_timer_fn.h"
|
||
5 years ago
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
|
|
||
|
struct wf_timer;
|
||
|
struct wf_timer_manager;
|
||
|
|
||
5 years ago
|
extern struct wf_timer *
|
||
5 years ago
|
wf_timer_create(
|
||
|
struct wf_timer_manager * manager,
|
||
|
wf_timer_on_timer_fn * on_timer,
|
||
|
void * user_data);
|
||
|
|
||
5 years ago
|
extern void
|
||
5 years ago
|
wf_timer_dispose(
|
||
|
struct wf_timer * timer);
|
||
|
|
||
5 years ago
|
extern void
|
||
5 years ago
|
wf_timer_start(
|
||
|
struct wf_timer * timer,
|
||
|
int timeout_ms);
|
||
|
|
||
5 years ago
|
extern void
|
||
5 years ago
|
wf_timer_cancel(
|
||
|
struct wf_timer * timer);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|