Lines Matching refs:line
537 * Parse a MatchFooBar=banana line.
540 * @param key The MatchFooBar part of the line
541 * @param value The banana part of the line.
646 * Parse a ModelFooBar=1 line.
649 * @param key The ModelFooBar part of the line
686 * Parse a AttrFooBar=banana line.
689 * @param key The AttrFooBar part of the line
690 * @param value The banana part of the line.
876 * Parse a single line, expected to be in the format Key=value. Anything
883 parse_value_line(struct quirks_context *ctx, struct section *s, const char *line)
888 char **strv = strv_from_string(line, "=", &nelem);
908 qlog_error(ctx, "Unknown value prefix %s\n", line);
925 char line[512];
949 while (fgets(line, sizeof(line), fp)) {
954 comment = strstr(line, "#");
959 while (comment >= line) {
966 comment = strstr(line, "\n");
970 if (strlen(line) == 0)
975 switch (line[strlen(line) - 1]) {
980 path, lineno, line);
984 switch (line[0]) {
993 path, lineno, line);
997 if (line[strlen(line) - 1] != ']') {
999 path, lineno, line);
1006 path, lineno, line);
1017 section = section_new(path, line);
1022 if (line[0] < 'A' || line[0] > 'Z') {
1023 qlog_parser(ctx, "%s:%d: Unexpected line %s\n",
1024 path, lineno, line);
1030 path, lineno, line);
1033 if (!strneq(line, "Match", 5)) {
1035 path, lineno, line);
1041 if (!strneq(line, "Match", 5))
1045 if (strneq(line, "Match", 5)) {
1047 path, lineno, line);
1055 if (!parse_value_line(ctx, section, line)) {
1057 path, lineno, line);