| 1212 | } |
| 1213 | |
| 1214 | struct out_req *add_to_batch(struct command *cmd, |
| 1215 | struct request_batch *batch, |
| 1216 | const char *cmdname) |
| 1217 | { |
| 1218 | batch->num_remaining++; |
| 1219 | |
| 1220 | return jsonrpc_request_start(cmd, cmdname, |
| 1221 | batch_one_success, |
| 1222 | batch_one_failed, |
| 1223 | batch); |
| 1224 | } |
| 1225 | |
| 1226 | /* Runs finalcb immediately if batch is empty. */ |
| 1227 | struct command_result *batch_done(struct command *cmd, |
no outgoing calls