mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user