Lines Matching refs:name
45 {"device-name", required_argument, NULL, 'd'},
392 "invalid capabilities for option [%d, %s] (%x)", option_num, opt->name, opt->cap);
394 "option [%d, %s] must have a title", option_num, opt->name);
396 "option [%d, %s] must have a description", option_num, opt->name);
408 check(INF, (opt->name == NULL || *opt->name == 0),
409 "option [%d, %s] has a name", option_num, opt->name);
411 "option [%d, %s], group option is settable", option_num, opt->name);
414 check(ERR, (opt->name != NULL && *opt->name ==0),
415 "option 0 must have an empty name (ie. \"\")");
417 check(ERR, (opt->name != NULL && *opt->name !=0),
418 "option %d must have a name", option_num);
422 /* The option name must contain only "a".."z",
424 if (opt->name && opt->name[0]) {
425 const char *p = opt->name;
428 "name for option [%d, %s] must start with in letter in [a..z]",
429 option_num, opt->name);
437 "name for option [%d, %s] must only have the letters [-a..z0..9]",
438 option_num, opt->name);
449 "size of option %s is incorrect", opt->name);
453 "invalid constraint type for option [%d, %s] (%d)", option_num, opt->name, opt->constraint_type);
459 "invalid size for option %s", opt->name);
465 "invalid constraint type for option [%d, %s] (%d)", option_num, opt->name, opt->constraint_type);
470 "size of option [%d, %s] must be at least 1 for the NUL terminator", option_num, opt->name);
472 "unit of option [%d, %s] is not SANE_UNIT_NONE", option_num, opt->name);
475 "invalid constraint type for option [%d, %s] (%d)", option_num, opt->name, opt->constraint_type);
483 "option [%d, %s], unit is not SANE_UNIT_NONE", option_num, opt->name);
485 "option [%d, %s], size is not 0", option_num, opt->name);
487 "invalid constraint type for option [%d, %s] (%d)", option_num, opt->name, opt->constraint_type);
493 opt->type, opt->name);
515 "cannot get option [%d, %s] value, although it is active (%s)", option_num, opt->name, sane_strstatus(status));
518 "was able to get option [%d, %s] value, although it is not active", option_num, opt->name);
528 "cannot set option [%d, %s] value, although it is active and settable (%s)", option_num, opt->name, sane_strstatus(status));
531 "was able to set option [%d, %s] value, although it is not active or settable", option_num, opt->name);
543 "cannot get option [%d, %s] value, although it is active (%s)", option_num, opt->name, sane_strstatus(status));
546 "was able to get option [%d, %s] value, although it is not active", option_num, opt->name);
549 "when getting option [%d, %s], info was set to %x", option_num, opt->name, info);
559 "cannot set option [%d, %s] value, although it is active and settable (%s)", option_num, opt->name, sane_strstatus(status));
571 "was able to set option [%d, %s] value, although it is not active or settable", option_num, opt->name);
583 "cannot set the option [%d, %s] automatically.", option_num, opt->name);
586 "was able to automatically set option [%d, %s], although it is not active or settable or automatically settable", option_num, opt->name);
601 "option [%d, %s], SANE_CAP_HARD_SELECT and SANE_CAP_SOFT_SELECT are mutually exclusive", option_num, opt->name);
604 "option [%d, %s], SANE_CAP_SOFT_DETECT must be set if SANE_CAP_SOFT_SELECT is set", option_num, opt->name);
610 "option [%d, %s], must not be settable", option_num, opt->name);
637 "cannot get option [%d, %s] value", option_num, opt->name);
647 "cannot set option [%d, %s] value", option_num, opt->name);
659 "cannot get option [%d, %s] value", option_num, opt->name);
662 "sane_control_option did not copy the string parameter for option [%d, %s]", option_num, opt->name);
676 "cannot get boolean option [%d, %s] value (%s)", option_num, opt->name, sane_strstatus(status));
688 org_v, option_num, opt->name);
695 "cannot set boolean option [%d, %s] value (%s)", option_num, opt->name, sane_strstatus(status));
708 "cannot set boolean option [%d, %s] value (%s)", option_num, opt->name, sane_strstatus(status));
726 "was able to set an invalid value for boolean option [%d, %s]", option_num, opt->name);
732 "was able to set an invalid value for boolean option [%d, %s]", option_num, opt->name);
755 "incorrect return when setting an invalid range value for option [%d, %s] (status %s, info %x)", option_num, opt->name, sane_strstatus(status), info);
763 "incorrect return when setting an invalid range value for option [%d, %s] (status %s, info %x)", option_num, opt->name, sane_strstatus(status), info);
774 "incorrect return when setting an invalid range value for option [%d, %s] (status %s, info %x)", option_num, opt->name, sane_strstatus(status), info);
782 "incorrect return when setting a valid range value for option [%d, %s] (status %s, info %x)", option_num, opt->name, sane_strstatus(status), info);
805 "no constraint list for option [%d, %s]", option_num, opt->name);
811 "no constraint list for option [%d, %s]", option_num, opt->name);
817 "no constraint range for option [%d, %s]", option_num, opt->name);
820 option_num, opt->name, opt->constraint.range->min, opt->constraint.range->max);
829 "option [%d, %s] has some constraint value set", option_num, opt->name);
859 /* Get an option descriptor by the name of the option. */
860 static const SANE_Option_Descriptor *get_optdesc_by_name(SANE_Handle device, const char *name, int *option_num)
878 if (opt->name && strcmp(opt->name, name) == 0) {
901 "no value in the list for option %s", opt->name);
907 "cannot set option %s to %d (%s)", opt->name, val_int, sane_strstatus(status));
912 "no value in the list for option %s", opt->name);
919 "cannot set option %s to [%s] (%s)", opt->name, val_string, sane_strstatus(status));
928 "cannot set option %s to %d (%s)", opt->name, val_int, sane_strstatus(status));
953 "no value in the list for option %s", opt->name);
959 "cannot set option %s to %d (%s)", opt->name, val_int, sane_strstatus(status));
964 "no value in the list for option %s", opt->name);
972 "cannot set option %s to [%s] (%s)", opt->name, val_string, sane_strstatus(status));
981 "cannot set option %s to %d (%s)", opt->name, val_int, sane_strstatus(status));
1005 "no value in the list for option %s", opt->name);
1012 "cannot set option %s to %d (%s)", opt->name, val_int, sane_strstatus(status));
1017 "no value in the list for option %s", opt->name);
1026 "cannot set option %s to [%s] (%s)", opt->name, val_string, sane_strstatus(status));
1037 "cannot set option %s to %d (%s)", opt->name, val_int, sane_strstatus(status));
1590 check(FATAL, (dev->name != NULL), "device name is NULL");
1647 check(MSG, 0, "\t%s:%s %s:%s", dev->vendor, dev->name, dev->type, dev->model);
1675 printf("\t-d\tbackend name\n");
1816 /* If no device name was specified explicitly, we look at the
1825 devname = strdup(device_list[0]->name);