libplugin: Add features to plugin_main and getmanifest

This commit is contained in:
Christian Decker
2020-03-31 15:34:02 +02:00
committed by Rusty Russell
parent 59567dc04b
commit e03acd9663
8 changed files with 30 additions and 11 deletions

View File

@@ -123,7 +123,7 @@ static const struct plugin_notification notifs[] = { {
int main(int argc, char *argv[])
{
setup_locale();
plugin_main(argv, init, PLUGIN_RESTARTABLE, commands, ARRAY_SIZE(commands),
plugin_main(argv, init, PLUGIN_RESTARTABLE, NULL, commands, ARRAY_SIZE(commands),
notifs, ARRAY_SIZE(notifs), hooks, ARRAY_SIZE(hooks),
plugin_option("name",
"string",