| 388 | } |
| 389 | |
| 390 | bool param_check(struct command *cmd, |
| 391 | const char *buffer, |
| 392 | const jsmntok_t tokens[], ...) |
| 393 | { |
| 394 | bool ret; |
| 395 | va_list ap; |
| 396 | |
| 397 | va_start(ap, tokens); |
| 398 | ret = param_core(cmd, buffer, tokens, ap); |
| 399 | va_end(ap); |
| 400 | |
| 401 | return ret; |
| 402 | } |
| 403 | |
| 404 | struct command_result *param_array(struct command *cmd, const char *name, |
| 405 | const char *buffer, const jsmntok_t *tok, |