Lines Matching refs:optd
104 static HpOption hp_optset_get (HpOptSet this, HpOptionDescriptor optd);
336 _HpSaneOption optd;
343 optd = hp_accessor_optd_data(new->optd_acsr, data);
345 memset(optd, 0, sizeof(*optd));
346 optd->name = desc->name;
347 optd->title = desc->title;
348 optd->desc = desc->desc;
349 optd->type = desc->type;
350 optd->unit = desc->unit;
351 optd->cap = desc->cap;
354 * Probe function will set optd->size, optd->constraint_type,
355 * and optd->constraint.
478 HpSaneOption optd = hp_option_saneoption(this, data);
480 if (optd->type == SANE_TYPE_STRING)
481 return strncmp((const char *)val1, (const char *)val2, optd->size) == 0;
483 return memcmp(val1, val2, optd->size) == 0;
497 HpSaneOption optd = hp_option_saneoption(this, data);
498 hp_byte_t * old_val = alloca(optd->size);
503 if (!SANE_OPTION_IS_SETTABLE(optd->cap))
527 if (FAILED( status = sanei_constrain_value(optd, valp, info) ))
543 memcpy(old_val, valp, optd->size); /* Save requested value */
566 HpSaneOption optd = hp_option_saneoption(this, data);
567 hp_byte_t * old_val = alloca(optd->size);
572 if (!SANE_OPTION_IS_SETTABLE(optd->cap) || !this->data_acsr)
583 if (FAILED( status = sanei_constrain_value(optd, valp, info) ))
599 memcpy(old_val, valp, optd->size); /* Save requested value */
630 HpSaneOption optd = hp_option_saneoption(this, data);
632 if (!SANE_OPTION_IS_ACTIVE(optd->cap))
650 HpSaneOption optd = hp_option_saneoption(this, data);
652 if (!SANE_OPTION_IS_ACTIVE(optd->cap))
696 _HpSaneOption optd = _hp_option_saneoption(this, data);
699 optd->cap &= ~SANE_CAP_INACTIVE;
701 optd->cap |= SANE_CAP_INACTIVE;
719 _HpSaneOption optd = _hp_option_saneoption(opt, data);
728 optd->constraint.range = range;
729 optd->constraint_type = SANE_CONSTRAINT_RANGE;
1056 _HpSaneOption optd = _hp_option_saneoption(this, data);
1057 optd->constraint.string_list = strlist;
1058 optd->constraint_type = SANE_CONSTRAINT_STRING_LIST;
3518 hp_optset_get (HpOptSet this, HpOptionDescriptor optd)
3525 if ((*optp)->descriptor == optd)