libraw1394 struct layouts, i386 vs. x86_64
VirginSnow at vfemail.net
VirginSnow at vfemail.net
Wed Jan 7 23:31:13 EST 2009
> Date: Wed, 7 Jan 2009 16:10:38 -0500
> From: "Ben Scott" <dragonhawk at gmail.com>
<snip!>
> Moral being: If you're a programmer, do not use C struct's for
> anything but internal-use-only purposes. Do not pass them to/from
> external code. And *NEVER* write or read C struct's directly to
> files.
So what's the recommended way to do this? One way might be to expose
a function/method for accessing each structure member. But a lot of
existing code isn't written that way. A huge number of ioctls, for
example, rely on passing pointers to structs.
More information about the gnhlug-discuss
mailing list