next up previous contents index
次へ: Scan Resolution Option 上へ: Well-Known Options 戻る: Well-Known Options   目次   索引


Option Number Count

Option number 0 has an empty string as its name. The value of this option is of type SANE_TYPE_INT and it specifies the total number of options available for a given device (the count includes option number 0). This means that there are two ways of counting the number of options available: a frontend can either cycle through all option numbers starting at one until sane_get_option_descriptor() returns NULL, or a frontend can directly read out the value of option number 0.



MATSUBAYASHI 'Shaolin' Kohji 平成14年10月29日