| 1198 | } |
| 1199 | |
| 1200 | static struct command_result *batch_one_success(struct command *cmd, |
| 1201 | const char *method, |
| 1202 | const char *buf, |
| 1203 | const jsmntok_t *result, |
| 1204 | struct request_batch *batch) |
| 1205 | { |
| 1206 | /* If this frees stuff (e.g. fails), just return */ |
| 1207 | if (batch->cb && batch->cb(cmd, method, buf, result, batch->arg) == &complete) |
| 1208 | return &complete; |
| 1209 | return batch_one_complete(cmd, batch); |
| 1210 | } |
| 1211 | |
| 1212 | static struct command_result *batch_one_failed(struct command *cmd, |
| 1213 | const char *method, |
nothing calls this directly
no test coverage detected