libplugin: demarshal and stash the feature set given by lightningd.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-04-02 14:36:47 +10:30
parent 7a95e90ee4
commit 8cb364dd28
2 changed files with 42 additions and 1 deletions

View File

@@ -90,6 +90,9 @@ struct plugin_hook {
const jsmntok_t *params);
};
/* Return the feature set of the current lightning node */
const struct feature_set *plugin_feature_set(const struct plugin *p);
/* Helper to create a JSONRPC2 request stream. Send it with `send_outreq`. */
struct out_req *
jsonrpc_request_start_(struct plugin *plugin, struct command *cmd,