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