| 1156 | }; |
| 1157 | |
| 1158 | struct request_batch *request_batch_new_(const tal_t *ctx, |
| 1159 | struct command_result *(*cb)(struct command *, |
| 1160 | const char *, |
| 1161 | const char *, |
| 1162 | const jsmntok_t *, |
| 1163 | void *), |
| 1164 | struct command_result *(*errcb)(struct command *, |
| 1165 | const char *, |
| 1166 | const char *, |
| 1167 | const jsmntok_t *, |
| 1168 | void *), |
| 1169 | struct command_result *(*finalcb)(struct command *, |
| 1170 | void *), |
| 1171 | void *arg) |
| 1172 | { |
| 1173 | struct request_batch *batch = tal(ctx, struct request_batch); |
| 1174 | |
| 1175 | batch->num_remaining = 0; |
| 1176 | batch->cb = cb; |
| 1177 | batch->errcb = errcb; |
| 1178 | batch->finalcb = finalcb; |
| 1179 | batch->arg = arg; |
| 1180 | return batch; |
| 1181 | } |
| 1182 | |
| 1183 | static struct command_result *batch_one_complete(struct command *cmd, |
| 1184 | struct request_batch *batch) |
nothing calls this directly
no outgoing calls
no test coverage detected