lightningd: have plugin_send_getmanifest return an error string.

This way the caller doesn't have to "know" that it should use strerror().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-05-05 10:44:32 +09:30
parent 86615f5405
commit 7223a9446e
3 changed files with 15 additions and 8 deletions

View File

@@ -196,8 +196,10 @@ bool plugin_remove(struct plugins *plugins, const char *name);
/**
* Kick of initialization of a plugin.
*
* Returns error string, or NULL.
*/
bool plugin_send_getmanifest(struct plugin *p);
const char *plugin_send_getmanifest(struct plugin *p);
/**
* Kick of initialization of all plugins which need it/