Lines Matching defs:optctx
251 static int write_option(void *optctx, const OptionDef *po, const char *opt,
254 /* new-style options contain an offset into optctx, old-style address of
257 (uint8_t *)optctx + po->u.off : po->u.dst_ptr;
292 int ret = po->u.func_arg(optctx, opt, arg);
306 int parse_option(void *optctx, const char *opt, const char *arg,
338 ret = write_option(optctx, po, opt, arg);
345 void parse_options(void *optctx, int argc, char **argv, const OptionDef *options,
366 if ((ret = parse_option(optctx, opt, argv[optindex], options)) < 0)
371 parse_arg_function(optctx, opt);
376 int parse_optgroup(void *optctx, OptionGroup *g)
399 ret = write_option(optctx, o->opt, o->key, o->val);
510 int opt_default(void *optctx, const char *opt, const char *arg)