Dillo v3.1.1-91-g6d5b3ee3
Loading...
Searching...
No Matches
timeout.hh
Go to the documentation of this file.
1#ifndef __TIMEOUT_HH__
2#define __TIMEOUT_HH__
3
4#ifdef __cplusplus
5extern "C" {
6#endif /* __cplusplus */
7
8typedef void (*TimeoutCb_t)(void *data);
9
10void a_Timeout_add(float t, TimeoutCb_t cb, void *cbdata);
11void a_Timeout_repeat(float t, TimeoutCb_t cb, void *cbdata);
12void a_Timeout_remove(void);
13
14
15#ifdef __cplusplus
16}
17#endif /* __cplusplus */
18
19#endif /* __TIMEOUT_HH__ */
20
void a_Timeout_remove(void)
Stop running a timeout function.
Definition timeout.cc:41
void(* TimeoutCb_t)(void *data)
Definition timeout.hh:8
void a_Timeout_repeat(float t, TimeoutCb_t cb, void *cbdata)
To be called from inside the 'cb' function when it wants to keep running.
Definition timeout.cc:33
void a_Timeout_add(float t, TimeoutCb_t cb, void *cbdata)
Hook a one-time timeout function 'cb' after 't' seconds with 'cbdata" as its data.
Definition timeout.cc:25