Lines Matching refs:attr

649 parseDeviceAttr(struct OptConfData *data, const char **attr)
653 for (i = 0; attr[i]; i += 2) {
654 if (!strcmp(attr[i], "driver")) driver = attr[i+1];
655 else if (!strcmp(attr[i], "screen")) screen = attr[i+1];
656 else if (!strcmp(attr[i], "kernel_driver")) kernel = attr[i+1];
657 else if (!strcmp(attr[i], "device")) device = attr[i+1];
658 else XML_WARNING("unknown device attribute: %s.", attr[i]);
679 parseAppAttr(struct OptConfData *data, const char **attr)
691 for (i = 0; attr[i]; i += 2) {
692 if (!strcmp(attr[i], "name")) /* not needed here */;
693 else if (!strcmp(attr[i], "executable")) exec = attr[i+1];
694 else if (!strcmp(attr[i], "executable_regexp")) exec_regexp = attr[i+1];
695 else if (!strcmp(attr[i], "sha1")) sha1 = attr[i+1];
696 else if (!strcmp(attr[i], "application_name_match"))
697 application_name_match = attr[i+1];
698 else if (!strcmp(attr[i], "application_versions"))
699 application_versions = attr[i+1];
700 else XML_WARNING("unknown application attribute: %s.", attr[i]);
761 parseEngineAttr(struct OptConfData *data, const char **attr)
768 for (i = 0; attr[i]; i += 2) {
769 if (!strcmp(attr[i], "name")) /* not needed here */;
770 else if (!strcmp(attr[i], "engine_name_match")) engine_name_match = attr[i+1];
771 else if (!strcmp(attr[i], "engine_versions")) engine_versions = attr[i+1];
772 else XML_WARNING("unknown application attribute: %s.", attr[i]);
798 parseOptConfAttr(struct OptConfData *data, const char **attr)
802 for (i = 0; attr[i]; i += 2) {
803 if (!strcmp(attr[i], "name")) name = attr[i+1];
804 else if (!strcmp(attr[i], "value")) value = attr[i+1];
805 else XML_WARNING("unknown option attribute: %s.", attr[i]);
860 const char **attr)
868 if (attr[0])
879 parseDeviceAttr(data, attr);
888 parseAppAttr(data, attr);
897 parseEngineAttr(data, attr);
906 parseOptConfAttr(data, attr);