| 2292 | } |
| 2293 | |
| 2294 | static struct command_result *param_channel_for_splice(struct command *cmd, |
| 2295 | const char *name, |
| 2296 | const char *buffer, |
| 2297 | const jsmntok_t *tok, |
| 2298 | struct channel **channel) |
| 2299 | { |
| 2300 | struct command_result *result; |
| 2301 | struct channel_id *cid; |
| 2302 | |
| 2303 | result = param_channel_id(cmd, name, buffer, tok, &cid); |
| 2304 | |
| 2305 | if (result != NULL) |
| 2306 | return result; |
| 2307 | |
| 2308 | return channel_for_splice(cmd, cid, channel); |
| 2309 | } |
| 2310 | |
| 2311 | static void destroy_splice_command(struct splice_command *cc) |
| 2312 | { |
no test coverage detected