Lines Matching refs:opt
229 xf86optionListDup(XF86OptionPtr opt) in xf86optionListDup() argument
234 while (opt) { in xf86optionListDup()
235 _val = opt->opt_val ? strdup(opt->opt_val) : NULL; in xf86optionListDup()
236 newopt = xf86addNewOption(newopt, strdup(opt->opt_name), _val); in xf86optionListDup()
237 newopt->opt_used = opt->opt_used; in xf86optionListDup()
238 if (opt->opt_comment) in xf86optionListDup()
239 newopt->opt_comment = strdup(opt->opt_comment); in xf86optionListDup()
240 opt = opt->list.next; in xf86optionListDup()
246 xf86optionListFree(XF86OptionPtr opt) in xf86optionListFree() argument
250 while (opt) { in xf86optionListFree()
251 TestFree(opt->opt_name); in xf86optionListFree()
252 TestFree(opt->opt_val); in xf86optionListFree()
253 TestFree(opt->opt_comment); in xf86optionListFree()
254 prev = opt; in xf86optionListFree()
255 opt = opt->list.next; in xf86optionListFree()
261 xf86optionName(XF86OptionPtr opt) in xf86optionName() argument
263 if (opt) in xf86optionName()
264 return opt->opt_name; in xf86optionName()
269 xf86optionValue(XF86OptionPtr opt) in xf86optionValue() argument
271 if (opt) in xf86optionValue()
272 return opt->opt_val; in xf86optionValue()
279 XF86OptionPtr opt; in xf86newOption() local
281 opt = calloc(1, sizeof(*opt)); in xf86newOption()
282 if (!opt) in xf86newOption()
285 opt->opt_used = 0; in xf86newOption()
286 opt->list.next = 0; in xf86newOption()
287 opt->opt_name = name; in xf86newOption()
288 opt->opt_val = value; in xf86newOption()
290 return opt; in xf86newOption()