Lines Matching defs:line
51 /* Handle one line of output from the lspci subprocess */
53 handle_child_line(const char *line, void *data)
58 if (str_startswith(line, "Class:"))
60 val = line + sizeof("Class:");
65 else if (str_startswith(line, "Vendor:"))
67 val = line + sizeof("Vendor:");
70 else if (str_startswith(line, "Device:"))
72 val = line + sizeof("Device:");
78 else if (str_startswith(line, "SVendor:"))
80 val = line + sizeof("SVendor:");
83 else if (str_startswith(line, "SDevice:"))
85 val = line + sizeof("SDevice:");
88 else if (str_startswith(line, "Rev:"))
90 val = line + sizeof("Rev:");
93 else if (str_startswith(line, "ProgIf:"))
95 val = line + sizeof("ProgIf:");
98 else if (strspn(line, " \t") == strlen(line))
100 /* Blank line. Send collected information over channel */
110 warning("lspci: Unrecoqnized line '%s'\n", line);
116 /* Process one line of input from virtual channel */
118 lspci_process_line(const char *line, void *data)
122 if (!strcmp(line, "LSPCI"))
131 error("lspci protocol error: Invalid line '%s'\n", line);