| 1188 | } |
| 1189 | |
| 1190 | static struct command_result *batch_one_success(struct command *cmd, |
| 1191 | const char *method, |
| 1192 | const char *buf, |
| 1193 | const jsmntok_t *result, |
| 1194 | struct request_batch *batch) |
| 1195 | { |
| 1196 | /* If this frees stuff (e.g. fails), just return */ |
| 1197 | if (batch->cb && batch->cb(cmd, method, buf, result, batch->arg) == &complete) |
| 1198 | return &complete; |
| 1199 | return batch_one_complete(cmd, batch); |
| 1200 | } |
| 1201 | |
| 1202 | static struct command_result *batch_one_failed(struct command *cmd, |
| 1203 | const char *method, |
nothing calls this directly
no test coverage detected