lightningd: use jsonrpc_io for plugin JSON commands.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-10-23 14:23:05 +10:30
parent 203dbaab20
commit 4958cd3289
2 changed files with 123 additions and 202 deletions

View File

@@ -76,10 +76,7 @@ struct plugin {
bool dynamic;
/* Stuff we read */
char *buffer;
size_t used, len_read;
jsmn_parser parser;
jsmntok_t *toks;
struct jsonrpc_io *json_in;
/* Our json_streams. Since multiple streams could start
* returning data at once, we always service these in order,