libplugin: allow plugins to register optional filters for each hook they want.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-11-20 12:07:13 +10:30
parent d9d82ac5bd
commit ebe5f2e68f
2 changed files with 21 additions and 0 deletions

View File

@@ -99,6 +99,14 @@ struct plugin_hook {
const jsmntok_t *params);
/* If non-NULL, these are NULL-terminated arrays of deps */
const char **before, **after;
/* String filters (you can only set this *or* intfilters) */
const char **strfilters;
size_t num_strfilters;
/* Integer filters */
const u64 *intfilters;
size_t num_intfilters;
};
/* Return the feature set of the current lightning node */