| 457 | } |
| 458 | |
| 459 | struct command_result *command_success(struct command *cmd, |
| 460 | struct json_stream *result) |
| 461 | { |
| 462 | assert(cmd); |
| 463 | assert(cmd->json_stream == result); |
| 464 | json_object_end(result); |
| 465 | json_object_end(result); |
| 466 | |
| 467 | return command_raw_complete(cmd, result); |
| 468 | } |
| 469 | |
| 470 | struct command_result *command_failed(struct command *cmd, |
| 471 | struct json_stream *result) |
no test coverage detected