libplugin: support filters.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-11-09 14:10:57 +10:30
parent b6134303d4
commit cb1156cd32
3 changed files with 27 additions and 5 deletions

View File

@@ -55,6 +55,8 @@ struct command {
const char *methodname;
bool usage_only;
struct plugin *plugin;
/* Optional output field filter. */
struct json_filter *filter;
};
/* Create an array of these, one for each command you support. */