libplugin: replace rpc_delve with rpc_scan.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-01-06 16:11:20 +10:30
committed by Christian Decker
parent b61da8c5a9
commit 09b18bf64f
6 changed files with 44 additions and 61 deletions

View File

@@ -190,13 +190,13 @@ command_success_str(struct command *cmd, const char *str);
struct command_result *WARN_UNUSED_RESULT
command_hook_success(struct command *cmd);
/* Synchronous helper to send command and extract single field from
/* Synchronous helper to send command and extract fields from
* response; can only be used in init callback. */
const char *rpc_delve(const tal_t *ctx,
struct plugin *plugin,
const char *method,
const struct json_out *params TAKES,
const char *guide);
void rpc_scan(struct plugin *plugin,
const char *method,
const struct json_out *params TAKES,
const char *guide,
...);
/* Send an async rpc request to lightningd. */
struct command_result *