MCPcopy Index your code
hub / github.com/ElementsProject/lightning / plugin_timer_

Function plugin_timer_

plugins/libplugin.c:1223–1234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1221}
1222
1223struct plugin_timer *plugin_timer_(struct plugin *p, struct timerel t,
1224 void (*cb)(void *cb_arg),
1225 void *cb_arg)
1226{
1227 struct plugin_timer *timer = notleak(tal(NULL, struct plugin_timer));
1228 timer->cb = cb;
1229 timer->cb_arg = cb_arg;
1230 timer_init(&timer->timer);
1231 timer_addrel(&p->timers, &timer->timer, t);
1232 tal_add_destructor2(timer, destroy_plugin_timer, p);
1233 return timer;
1234}
1235
1236static void plugin_logv(struct plugin *p, enum log_level l,
1237 const char *fmt, va_list ap)

Callers

nothing calls this directly

Calls 2

timer_initFunction · 0.85
timer_addrelFunction · 0.85

Tested by

no test coverage detected