libplugin: add a 'still_pending' helper

This commit is contained in:
darosior
2020-02-02 14:20:23 +01:00
committed by Rusty Russell
parent 5c7f9b542a
commit b0b55d36ef
2 changed files with 10 additions and 0 deletions

View File

@@ -217,6 +217,12 @@ command_finished(struct command *cmd, struct json_stream *response)
return command_complete(cmd, response);
}
struct command_result *WARN_UNUSED_RESULT
command_still_pending(struct command *cmd)
{
return &pending;
}
struct json_out *json_out_obj(const tal_t *ctx,
const char *fieldname,
const char *str)