| 247 | } |
| 248 | |
| 249 | static struct command_result *param_params(struct command *cmd, const char *name, |
| 250 | const char * buffer, const jsmntok_t *tok, |
| 251 | const jsmntok_t **params) |
| 252 | { |
| 253 | if (tok->type != JSMN_OBJECT && tok->type != JSMN_ARRAY) { |
| 254 | return command_fail_badparam(cmd, name, buffer, tok, "must be object or array"); |
| 255 | } |
| 256 | *params = tok; |
| 257 | return NULL; |
| 258 | } |
| 259 | |
| 260 | /* The unique id is embedded with a special restriction with an empty field name */ |
| 261 | static bool is_unique_id(struct rune_restr **restrs, unsigned int index) |
nothing calls this directly
no test coverage detected