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

René Rebe rene at exactcode.de
Wed Jul 18 08:14:02 UTC 2007


On Tuesday 17 July 2007 18:58:03 David Solomon wrote:
> I got it working.  I needed to use PACKED8 on the structures in the
> avision.c file also.  Moved all of the Avision device structures to
> PACKED16.

Can you please send me a diff(1) of your modificatoins, thanks :-)

Yours,
  René

> David Solomon
> 
> On 7/16/07, m. allan noah <kitno455 at gmail.com> wrote:
> > 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"
> >
> 



-- 
  René Rebe - ExactCODE GmbH - Europe, Germany, Berlin
  Geschäftsführer: Susanne Klaus, René Rebe
  Sitz: Berlin, Amtsgericht Charlottenburg HRB 105 123 B
  USt-IdNr.: DE251602478
  http://exactcode.de | http://t2-project.org | http://rene.rebe.name



More information about the sane-devel mailing list