libplugin: generalize the plugin_timer callback type

We don't take the callback result into account, so it can better be void.
Having a general callback parameter is handy, because for bcli we want
to pass it the struct bcli.
This commit is contained in:
darosior
2020-02-03 22:27:46 +01:00
committed by Rusty Russell
parent b0b55d36ef
commit 3eb0f56f87
3 changed files with 16 additions and 10 deletions

View File

@@ -212,7 +212,8 @@ struct command_result *timer_complete(struct plugin *p);
*/
struct plugin_timer *plugin_timer(struct plugin *p,
struct timerel t,
struct command_result *(*cb)(struct plugin *p));
void (*cb)(void *cb_arg),
void *cb_arg);
/* Log something */
void plugin_log(struct plugin *p, enum log_level l, const char *fmt, ...) PRINTF_FMT(3, 4);