Lines Matching refs:opt
233 xf86optionListDup (XF86OptionPtr opt)
238 while (opt)
240 val = opt->opt_val ? strdup(opt->opt_val) : NULL;
241 newopt = xf86addNewOption(newopt, strdup(opt->opt_name), val);
242 newopt->opt_used = opt->opt_used;
243 if (opt->opt_comment)
244 newopt->opt_comment = strdup(opt->opt_comment);
245 opt = opt->list.next;
251 xf86optionListFree (XF86OptionPtr opt)
255 while (opt)
257 TestFree (opt->opt_name);
258 TestFree (opt->opt_val);
259 TestFree (opt->opt_comment);
260 prev = opt;
261 opt = opt->list.next;
267 xf86optionName(XF86OptionPtr opt)
269 if (opt)
270 return opt->opt_name;
275 xf86optionValue(XF86OptionPtr opt)
277 if (opt)
278 return opt->opt_val;
285 XF86OptionPtr opt;
287 opt = calloc(1, sizeof (XF86OptionRec));
288 if (!opt)
291 opt->opt_used = 0;
292 opt->list.next = 0;
293 opt->opt_name = name;
294 opt->opt_val = value;
296 return opt;