Lines Matching refs:ptr
71 xf86freeInputClassList(XF86ConfInputClassPtr ptr) in xf86freeInputClassList() argument
75 while (ptr) { in xf86freeInputClassList()
79 TestFree(ptr->identifier); in xf86freeInputClassList()
80 TestFree(ptr->driver); in xf86freeInputClassList()
82 xorg_list_for_each_entry_safe(group, next, &ptr->match_product, entry) { in xf86freeInputClassList()
88 xorg_list_for_each_entry_safe(group, next, &ptr->match_vendor, entry) { in xf86freeInputClassList()
94 xorg_list_for_each_entry_safe(group, next, &ptr->match_device, entry) { in xf86freeInputClassList()
100 xorg_list_for_each_entry_safe(group, next, &ptr->match_os, entry) { in xf86freeInputClassList()
106 xorg_list_for_each_entry_safe(group, next, &ptr->match_pnpid, entry) { in xf86freeInputClassList()
112 xorg_list_for_each_entry_safe(group, next, &ptr->match_usbid, entry) { in xf86freeInputClassList()
118 xorg_list_for_each_entry_safe(group, next, &ptr->match_driver, entry) { in xf86freeInputClassList()
124 xorg_list_for_each_entry_safe(group, next, &ptr->match_tag, entry) { in xf86freeInputClassList()
130 xorg_list_for_each_entry_safe(group, next, &ptr->match_layout, entry) { in xf86freeInputClassList()
137 TestFree(ptr->comment); in xf86freeInputClassList()
138 xf86optionListFree(ptr->option_lst); in xf86freeInputClassList()
140 prev = ptr; in xf86freeInputClassList()
141 ptr = ptr->list.next; in xf86freeInputClassList()
178 xorg_list_init(&ptr->match_product); in xf86parseInputClassSection()
179 xorg_list_init(&ptr->match_vendor); in xf86parseInputClassSection()
180 xorg_list_init(&ptr->match_device); in xf86parseInputClassSection()
181 xorg_list_init(&ptr->match_os); in xf86parseInputClassSection()
182 xorg_list_init(&ptr->match_pnpid); in xf86parseInputClassSection()
183 xorg_list_init(&ptr->match_usbid); in xf86parseInputClassSection()
184 xorg_list_init(&ptr->match_driver); in xf86parseInputClassSection()
185 xorg_list_init(&ptr->match_tag); in xf86parseInputClassSection()
186 xorg_list_init(&ptr->match_layout); in xf86parseInputClassSection()
193 ptr->comment = xf86addComment(ptr->comment, xf86_lex_val.str); in xf86parseInputClassSection()
196 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
200 ptr->identifier = xf86_lex_val.str; in xf86parseInputClassSection()
204 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
207 ptr->driver = strdup("kbd"); in xf86parseInputClassSection()
211 ptr->driver = xf86_lex_val.str; in xf86parseInputClassSection()
214 ptr->option_lst = xf86parseOption(ptr->option_lst); in xf86parseInputClassSection()
220 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
222 add_group_entry(&ptr->match_product, in xf86parseInputClassSection()
231 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
233 add_group_entry(&ptr->match_vendor, in xf86parseInputClassSection()
242 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
244 add_group_entry(&ptr->match_device, in xf86parseInputClassSection()
253 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
255 add_group_entry(&ptr->match_os, xstrtokenize(xf86_lex_val.str, in xf86parseInputClassSection()
264 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
266 add_group_entry(&ptr->match_pnpid, in xf86parseInputClassSection()
275 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
277 add_group_entry(&ptr->match_usbid, in xf86parseInputClassSection()
286 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
288 add_group_entry(&ptr->match_driver, in xf86parseInputClassSection()
297 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
299 add_group_entry(&ptr->match_tag, xstrtokenize(xf86_lex_val.str, in xf86parseInputClassSection()
308 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
310 add_group_entry(&ptr->match_layout, in xf86parseInputClassSection()
316 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
318 ptr->is_keyboard.set = xf86getBoolValue(&ptr->is_keyboard.val, in xf86parseInputClassSection()
321 if (!ptr->is_keyboard.set) in xf86parseInputClassSection()
325 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
327 ptr->is_pointer.set = xf86getBoolValue(&ptr->is_pointer.val, in xf86parseInputClassSection()
330 if (!ptr->is_pointer.set) in xf86parseInputClassSection()
334 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
336 ptr->is_joystick.set = xf86getBoolValue(&ptr->is_joystick.val, in xf86parseInputClassSection()
339 if (!ptr->is_joystick.set) in xf86parseInputClassSection()
343 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
345 ptr->is_tablet.set = xf86getBoolValue(&ptr->is_tablet.val, xf86_lex_val.str); in xf86parseInputClassSection()
347 if (!ptr->is_tablet.set) in xf86parseInputClassSection()
351 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
353 ptr->is_tablet_pad.set = xf86getBoolValue(&ptr->is_tablet_pad.val, xf86_lex_val.str); in xf86parseInputClassSection()
355 if (!ptr->is_tablet_pad.set) in xf86parseInputClassSection()
359 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
361 ptr->is_touchpad.set = xf86getBoolValue(&ptr->is_touchpad.val, in xf86parseInputClassSection()
364 if (!ptr->is_touchpad.set) in xf86parseInputClassSection()
368 if (xf86getSubToken(&(ptr->comment)) != STRING) in xf86parseInputClassSection()
370 ptr->is_touchscreen.set = xf86getBoolValue(&ptr->is_touchscreen.val, in xf86parseInputClassSection()
373 if (!ptr->is_touchscreen.set) in xf86parseInputClassSection()
392 return ptr; in xf86parseInputClassSection()
396 xf86printInputClassSection(FILE * cf, XF86ConfInputClassPtr ptr) in xf86printInputClassSection() argument
401 while (ptr) { in xf86printInputClassSection()
403 if (ptr->comment) in xf86printInputClassSection()
404 fprintf(cf, "%s", ptr->comment); in xf86printInputClassSection()
405 if (ptr->identifier) in xf86printInputClassSection()
406 fprintf(cf, "\tIdentifier \"%s\"\n", ptr->identifier); in xf86printInputClassSection()
407 if (ptr->driver) in xf86printInputClassSection()
408 fprintf(cf, "\tDriver \"%s\"\n", ptr->driver); in xf86printInputClassSection()
410 xorg_list_for_each_entry(group, &ptr->match_product, entry) { in xf86printInputClassSection()
417 xorg_list_for_each_entry(group, &ptr->match_vendor, entry) { in xf86printInputClassSection()
424 xorg_list_for_each_entry(group, &ptr->match_device, entry) { in xf86printInputClassSection()
431 xorg_list_for_each_entry(group, &ptr->match_os, entry) { in xf86printInputClassSection()
438 xorg_list_for_each_entry(group, &ptr->match_pnpid, entry) { in xf86printInputClassSection()
445 xorg_list_for_each_entry(group, &ptr->match_usbid, entry) { in xf86printInputClassSection()
452 xorg_list_for_each_entry(group, &ptr->match_driver, entry) { in xf86printInputClassSection()
459 xorg_list_for_each_entry(group, &ptr->match_tag, entry) { in xf86printInputClassSection()
466 xorg_list_for_each_entry(group, &ptr->match_layout, entry) { in xf86printInputClassSection()
474 if (ptr->is_keyboard.set) in xf86printInputClassSection()
476 ptr->is_keyboard.val ? "yes" : "no"); in xf86printInputClassSection()
477 if (ptr->is_pointer.set) in xf86printInputClassSection()
479 ptr->is_pointer.val ? "yes" : "no"); in xf86printInputClassSection()
480 if (ptr->is_joystick.set) in xf86printInputClassSection()
482 ptr->is_joystick.val ? "yes" : "no"); in xf86printInputClassSection()
483 if (ptr->is_tablet.set) in xf86printInputClassSection()
485 ptr->is_tablet.val ? "yes" : "no"); in xf86printInputClassSection()
486 if (ptr->is_tablet_pad.set) in xf86printInputClassSection()
488 ptr->is_tablet_pad.val ? "yes" : "no"); in xf86printInputClassSection()
489 if (ptr->is_touchpad.set) in xf86printInputClassSection()
491 ptr->is_touchpad.val ? "yes" : "no"); in xf86printInputClassSection()
492 if (ptr->is_touchscreen.set) in xf86printInputClassSection()
494 ptr->is_touchscreen.val ? "yes" : "no"); in xf86printInputClassSection()
495 xf86printOptionList(cf, ptr->option_lst, 1); in xf86printInputClassSection()
497 ptr = ptr->list.next; in xf86printInputClassSection()