| 32 | } |
| 33 | |
| 34 | struct oneshot *new_abstimer_(struct timers *timers, |
| 35 | const tal_t *ctx, |
| 36 | struct timemono expiry, |
| 37 | void (*cb)(void *), void *arg) |
| 38 | { |
| 39 | struct oneshot *t = tal(ctx, struct oneshot); |
| 40 | |
| 41 | t->cb = cb; |
| 42 | t->arg = arg; |
| 43 | t->timers = timers; |
| 44 | timer_init(&t->timer); |
| 45 | timer_addmono(timers, &t->timer, expiry); |
| 46 | tal_add_destructor(t, destroy_timer); |
| 47 | |
| 48 | return t; |
| 49 | } |
| 50 | |
| 51 | void *oneshot_arg(struct oneshot *t) |
| 52 | { |
nothing calls this directly
no test coverage detected