[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT

m. allan noah kitno455 at gmail.com
Mon Jul 16 17:56:57 UTC 2007


this webpage is all i know about it (but google will give more):

http://sig9.com/articles/gcc-packed-structures

allan

On 7/16/07, David Solomon <lorddavon at gmail.com> wrote:
> Allan,
>
> Do I add them to all of the command structs or just the Avision_Connection?
>
> David Solomon
>
> On 7/16/07, m. allan noah <kitno455 at gmail.com> wrote:
> > On 7/16/07, David Solomon <lorddavon at gmail.com> wrote:
> > > I think you are right.  I am trying some pragma pack statments to see
> > > if they will help.  I looked at some of the plustek_usb header changes
> > > and found that they used: "#define PACKED8  __attribute__
> > > ((packed,aligned(1)))" and "#define PACKED16 __attribute__
> > > ((packed,aligned(2)))" statements to pack the structures.  I may have
> > > to use these myself, but I am unsure where to add (possible in the
> > > sanei_usb_write_bulk?).
> > >
> > > Thank you for the help.  I am going to get up-to-my-elbows in code now.  ;-)
> > >
> >
> > no- you want to add them to the command structs in avision.h
> >
> > allan
> >
> > --
> > "The truth is an offense, but not a sin"
> >
>


-- 
"The truth is an offense, but not a sin"



More information about the sane-devel mailing list