| 294 | } |
| 295 | |
| 296 | struct command_result *command_finished(struct command *cmd, |
| 297 | struct json_stream *response) |
| 298 | { |
| 299 | /* "result" or "error" object */ |
| 300 | json_object_end(response); |
| 301 | |
| 302 | return command_complete(cmd, response); |
| 303 | } |
| 304 | |
| 305 | struct command_result *WARN_UNUSED_RESULT |
| 306 | command_still_pending(struct command *cmd) |