[sane-devel] SANE_Parameters documentation different than code
m. allan noah
kitno455 at gmail.com
Mon Apr 2 19:28:09 UTC 2007
i have attempted to fix this in sane.tex in sane cvs. sane.ps looks ok now.
thanks for the heads up.
allan
On 4/2/07, dtlinker at comcast.net <dtlinker at comcast.net> wrote:
> I found an inconsistency between the documentation of the field order of SANE_Parameters and the actual field order in the header. This is not a problem if you are programming in C and using the header, but it is a problem if you are interfacing from another language, as I am. The header file has the information that is correct, that is, works.
> .
> >From the documentation:
> typedef struct
> {
> SANE_Frame format;
> SANE_Bool last_frame;
> SANE_Int lines;
> SANE_Int depth;
> SANE_Int pixels_per_line;
> SANE_Int bytes_per_line;
> }
> SANE_Parameters;
>
> >From the header file sane.h:
>
> typedef struct
> {
> SANE_Frame format;
> SANE_Bool last_frame;
> SANE_Int bytes_per_line;
> SANE_Int pixels_per_line;
> SANE_Int lines;
> SANE_Int depth;
> }
> SANE_Parameters;
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-request at lists.alioth.debian.org
>
--
"The truth is an offense, but not a sin"
More information about the sane-devel
mailing list