Parse action configuration field. */
| 8236 | |
| 8237 | /** Parse action configuration field. */ |
| 8238 | static int |
| 8239 | parse_vc_conf(struct context *ctx, const struct token *token, |
| 8240 | const char *str, unsigned int len, |
| 8241 | void *buf, unsigned int size) |
| 8242 | { |
| 8243 | struct buffer *out = buf; |
| 8244 | |
| 8245 | (void)size; |
| 8246 | /* Token name must match. */ |
| 8247 | if (parse_default(ctx, token, str, len, NULL, 0) < 0) |
| 8248 | return -1; |
| 8249 | /* Nothing else to do if there is no buffer. */ |
| 8250 | if (!out) |
| 8251 | return len; |
| 8252 | /* Point to selected object. */ |
| 8253 | ctx->object = out->args.vc.data; |
| 8254 | ctx->objmask = NULL; |
| 8255 | return len; |
| 8256 | } |
| 8257 | |
| 8258 | /** Parse action configuration field. */ |
| 8259 | static int |
nothing calls this directly
no test coverage detected