The minimum fields required to respond. */
| 46 | |
| 47 | /* The minimum fields required to respond. */ |
| 48 | static struct commando *new_commando(const tal_t *ctx, |
| 49 | struct command *cmd, |
| 50 | const struct node_id *peer, |
| 51 | u64 id) |
| 52 | { |
| 53 | struct commando *commando = tal(ctx, struct commando); |
| 54 | |
| 55 | commando->cmd = cmd; |
| 56 | commando->peer = *peer; |
| 57 | commando->id = id; |
| 58 | |
| 59 | commando->contents = NULL; |
| 60 | commando->json_id = NULL; |
| 61 | |
| 62 | return commando; |
| 63 | } |
| 64 | |
| 65 | /* NULL peer: don't care about peer. NULL id: don't care about id */ |
| 66 | static struct commando *find_commando(struct commando **arr, |
no outgoing calls
no test coverage detected