Lines Matching defs:line

52     SANE_I18N("Set threshold for line-art scans.")
501 * \fn static SANE_Status attach_one_config(SANEI_Config *config, const char *line)
510 attach_one_config(SANEI_Config __sane_unused__ *config, const char *line,
516 if (*line == '#') return SANE_STATUS_GOOD;
517 if (!strncmp(line, "pdfblacklist", 12)) return SANE_STATUS_GOOD;
518 if (strncmp(line, "device", 6) == 0) {
523 line = sanei_config_get_string(line + 6, &name_str);
529 if (*line) {
530 line = sanei_config_get_string(line, &opt_model);
533 if (*line) {
534 line = sanei_config_get_string(line, &opt_hack);
557 if (strncmp(line, "[device]", 8) == 0) {
565 else if (strncmp(line, "ip", 2) == 0) {
566 const char *ip_space = sanei_config_skip_whitespace(line + 2);
573 else if (sscanf(line, "port %i", &port) == 1 && port != 0) {
580 else if (strncmp(line, "model", 5) == 0) {
581 const char *model_space = sanei_config_skip_whitespace(line + 5);
588 else if (strncmp(line, "type", 4) == 0) {
589 const char *type_space = sanei_config_skip_whitespace(line + 4);
1186 SANE_Char line[PATH_MAX];
1204 /* loop reading the configuration file, all line beginning by "option " are
1205 * parsed for value to store in configuration structure, other line are
1208 while (sanei_config_read (line, PATH_MAX, fp))
1210 if (strstr(line, name)) {
1212 if (strstr(line, "hack=localhost")) {
1229 SANE_Char line[PATH_MAX];
1239 /* loop reading the configuration file, all line beginning by "option " are
1240 * parsed for value to store in configuration structure, other line are
1243 while (sanei_config_read (line, PATH_MAX, fp))
1245 if (!strncmp(line, "pdfblacklist", 12)) {
1246 blacklist = strdup(line);