| 1222 | } |
| 1223 | |
| 1224 | struct out_req *add_to_batch(struct command *cmd, |
| 1225 | struct request_batch *batch, |
| 1226 | const char *cmdname) |
| 1227 | { |
| 1228 | batch->num_remaining++; |
| 1229 | |
| 1230 | return jsonrpc_request_start(cmd, cmdname, |
| 1231 | batch_one_success, |
| 1232 | batch_one_failed, |
| 1233 | batch); |
| 1234 | } |
| 1235 | |
| 1236 | /* Runs finalcb immediately if batch is empty. */ |
| 1237 | struct command_result *batch_done(struct command *cmd, |
no outgoing calls