[sane-devel] SANE2 standard revisited: image data format
Matto Marjanovic
maddog at mir.com
Tue Dec 10 18:53:47 GMT 2002
>Some details:
>
>| 4.3.8 sane_get_parameters
>http://www.meier-geinitz.de/sane/sane2/0.07/doc012.html#s4.3.8
>
>|typedef struct
>| {
>[...]
>| char reserved[32]; /* 32 bytes for future use */
>| }
>| SANE_Parameters;
>
>--> SANE_Char, not char
SANE_Byte, not SANE_Char! :)
SANE_Char is (according to the standard) used for a textual character,
which may or may not be a byte in the future. SANE_Byte is a byte.
Although, technically SANE_Byte could be bigger than a byte; it just has
to be able to hold a byte. How about "uint8_t"? It's standard, no?
-matt m.
More information about the sane-devel
mailing list