mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
libplugin: add command_hook_success helper.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -186,6 +186,10 @@ command_success(struct command *cmd, const struct json_out *result);
|
||||
struct command_result *WARN_UNUSED_RESULT
|
||||
command_success_str(struct command *cmd, const char *str);
|
||||
|
||||
/* End a hook normally (with "result": "continue") */
|
||||
struct command_result *WARN_UNUSED_RESULT
|
||||
command_hook_success(struct command *cmd);
|
||||
|
||||
/* Synchronous helper to send command and extract single field from
|
||||
* response; can only be used in init callback. */
|
||||
const char *rpc_delve(const tal_t *ctx,
|
||||
|
||||
Reference in New Issue
Block a user