libplugin: Expose the jsonrpc_request_sync method

This one was mostly used in libplugin, but not available outside. It
is rather useful, so let's expose it.
This commit is contained in:
Christian Decker
2023-02-22 14:00:49 +01:00
committed by Alex Myers
parent 4a38e37b59
commit 29031c02ca
2 changed files with 15 additions and 0 deletions

View File

@@ -583,6 +583,14 @@ static const jsmntok_t *sync_req(const tal_t *ctx,
return contents;
}
const jsmntok_t *jsonrpc_request_sync(const tal_t *ctx, struct plugin *plugin,
const char *method,
const struct json_out *params TAKES,
const char **resp)
{
return sync_req(ctx, plugin, method, params, resp);
}
/* Returns contents of scanning guide on 'result' */
static const char *rpc_scan_core(const tal_t *ctx,
struct plugin *plugin,