Lines Matching defs:option

11    License, or (at your option) any later version.
856 /* only overwrite the default values if the option is non-zero */
929 /* only overwrite the default values if the option is non-zero */
1334 * as with the disable_optional_frames configuration option. NOTE:
1379 /* a section option looks something like this:
1389 DBG(1, "section_parse: option string too long\n");
1508 DBG(1, "setup_sections: option string too long\n");
1559 /* get the _SECTION option, parse it and fill in the sections */
3119 /* set option defaults based on inquiry information */
3186 if (strncmp(lp, "option", 6) == 0 &&
3194 DBG(1, "sane_init: configuration option "
3200 DBG(1, "sane_init: configuration option "
3207 "configuration option '%s'\n",
3334 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
3337 DBG(3, "sane_get_option_descriptor called (option:%d)\n", option);
3339 if ((unsigned) option >= NUM_OPTIONS)
3342 return (s->opt + option);
3346 sane_control_option (SANE_Handle handle, SANE_Int option, SANE_Action action,
3356 name = s->opt[option].name ? s->opt[option].name : "(nil)";
3363 if (option >= NUM_OPTIONS)
3366 cap = s->opt[option].cap;
3372 DBG(16, "sane_control_option: get_value %s [#%d]\n", name, option);
3373 switch (option)
3399 *(SANE_Word *) val = s->val[option].w;
3412 strcpy (val, s->val[option].s);
3424 *(SANE_Word *) val = s->val[option].w;
3428 DBG(1, "sane_control_option:invalid option number %d\n", option);
3434 switch (s->opt[option].type)
3439 name, option, *(SANE_Word *) val);
3444 name, option, SANE_UNFIX(*(SANE_Word *) val));
3449 name, option, (char *) val);
3454 name, option);
3460 status = sanei_constrain_value (s->opt + option, val, info);
3464 switch (option)
3472 if (s->val[option].w != *(SANE_Word *) val)
3487 if (info && s->val[option].w != *(SANE_Word *) val)
3508 s->val[option].w = *(SANE_Word *) val;
3513 /*!!! we're supporting only a single barcode type via the option */
3521 if (s->val[option].s)
3522 free (s->val[option].s);
3523 s->val[option].s = strdup (val);
3538 s->val[option].w = *(SANE_Word *) val;
3543 /* a boolean option */
3545 if (s->val[option].w != *(SANE_Word *) val)
3549 s->val[option].w = *(SANE_Word *) val;
3581 /* a string option */
3585 if (strcmp (s->val[option].s, (SANE_String) val))
3606 free (s->val[option].s);
3607 s->val[option].s = strdup (val);
3612 /* a string option */
3614 if (strcmp (s->val[option].s, (SANE_String) val))
3655 free (s->val[option].s);
3656 s->val[option].s = strdup (val);
3661 DBG(1, "sane_control_option:invalid option number %d\n", option);