libplugin: add support for before and after deps on hooks.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-10-30 11:43:42 +10:30
committed by neil saitug
parent e16ed0e207
commit 62c52fe868
3 changed files with 26 additions and 2 deletions

View File

@@ -118,9 +118,14 @@ static const struct plugin_command commands[] = { {
}
};
static const char *before[] = { "dummy", NULL };
static const char *after[] = { "dummy", NULL };
static const struct plugin_hook hooks[] = { {
"peer_connected",
json_peer_connected,
before,
after
}
};