[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldsync-hackers] USB on OS X
On Tue, Oct 23, 2001, Matthew C Weigel <mcweigel+@cs.cmu.edu> wrote:
> I'm looking to make Coldsync (well, really, libpconn and libpdb) usable
> under OS X with new machines - that is, adding USB support (I've got a
> Visor, and a Palm serial adapter, for testing). I'm not certain
> whether the solution used on Linux (which exports it as a character
> device that coldsync uses normally) will work very well in OS X, since
> it's not clear to me that IOKit is accessible when writing a BSD
> character device.
>
> My initial plan was to simply ignore serial devices (or rather, let the
> standard /dev/ttyd.{printer|modem} stuff handle it), and add a
> 'PConnection_osx.c' that implements the io_* functions using IOKit.
>
> A stumbling block is that I'm not sure about the overall structure, and
> I'm not sure what role some of the io_* functions play (like io_select,
> which doesn't seem to be used in the program source).
>
> Another stumbling block is the use of select() in the program source -
> is this ever used to assume you can select() across all connections
> with Palms?
>
> Anyone have any input on this?
The select() isn't that important. You can hardwire it to return 1 and
everything will work fine.
Atleast, it did for me when I coded up a patch for coldsync to use
libusb instead of the Linux kernel driver and the BSD ugen support.
Maybe you can instead add OSX support to libusb? Then you get gphoto2
support as well.
JE
This message was sent through the coldsync-hackers mailing list. To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body. For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.