[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldsync-hackers] Patch for USB Sony Clie on FreeBSD 4.5-STABLE
On Sat, Apr 13, 2002 at 12:06:32AM -0700, Peter Haight wrote:
> 1. About 2 months ago they changed the naming conventions for all the USB
> structures. So wherever you had udi.vendorNo, you now have to put
> udi.udi_vendorNo. I added a check to configure to figure which one you have
> and it sets a define accordingly. Then I use that define to pick a set of
> macros to use. Then I used those macros to access the structure members. So
> it should all work on older versions of FreeBSD as well.
The structure renaming was global to *BSD, thus NetBSD and OpenBSD
should have the same structure names now. The reason for this was
that the original header defined a structure member called 'class'
which of course is a reserved word in C++. All other behaviour
should remain the same as it was just the structure names that were
changed, no other code.
Joe
PGP signature