plugins/libplugin: hook support

Changelog-Added: plugins: libplugin now supports writing plugins which register to hooks
This commit is contained in:
darosior
2019-12-05 11:28:32 +01:00
committed by Christian Decker
parent 3371f0cf78
commit fcbd11f0c5
5 changed files with 41 additions and 8 deletions

View File

@@ -92,7 +92,7 @@ int main(int argc, char *argv[])
{
setup_locale();
plugin_main(argv, init, PLUGIN_RESTARTABLE, commands, ARRAY_SIZE(commands),
NULL, 0,
NULL, 0, NULL, 0,
plugin_option("autocleaninvoice-cycle",
"string",
"Perform cleanup of expired invoices every"