|
@ -24,4 +24,13 @@ void refresh_timeout(struct lightningd_state *dstate, struct timeout *t); |
|
|
init_timeout_((t), (interval), \ |
|
|
init_timeout_((t), (interval), \ |
|
|
typesafe_cb(void, void *, (func), (arg)), (arg)) |
|
|
typesafe_cb(void, void *, (func), (arg)), (arg)) |
|
|
|
|
|
|
|
|
|
|
|
/* tal_free this to disable timer. */ |
|
|
|
|
|
struct oneshot *oneshot_timeout_(struct lightningd_state *dstate, |
|
|
|
|
|
const tal_t *ctx, unsigned int seconds, |
|
|
|
|
|
void (*cb)(void *), void *arg); |
|
|
|
|
|
|
|
|
|
|
|
#define oneshot_timeout(dstate, ctx, interval, func, arg) \ |
|
|
|
|
|
oneshot_timeout_((dstate), (ctx), (interval), \ |
|
|
|
|
|
typesafe_cb(void, void *, (func), (arg)), (arg)) |
|
|
|
|
|
|
|
|
#endif /* LIGHTNING_DAEMON_TIMEOUT_H */ |
|
|
#endif /* LIGHTNING_DAEMON_TIMEOUT_H */ |
|
|