MCPcopy Create free account
hub / github.com/ElementsProject/lightning / request_batch_new_

Function request_batch_new_

plugins/libplugin.c:1158–1181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1156};
1157
1158struct 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
1183static struct command_result *batch_one_complete(struct command *cmd,
1184 struct request_batch *batch)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected