On Tue, 2007-10-02 at 10:59 +0200, Christian Buennig wrote: > this would be a better solution, but I have to test if it really works > for me. The point is that the actual socket handling is done in a C > library which I use from the Rhythmbox plugin via a Python - C - Wrapper > for that library. Are you writing the C lib yourself? If so, then you could just design it to expose the socket via Python, you could then pass it to io_add_watch. If not, I know there are python bindings for the bluetooth stack, maybe you could use them instead and again get access to the socket. > So I wonder if I can do an io_add_watch within the C library (using > g_io_add_watch from glib) .. or more abstract if I can add watches to > the _same_ main loop from within python using gobject and within C using > glib. ... btw: can one process have more than one main loop? Maaaybe. It sounds like a lot of work. I doubt you can have two main loops, but then again I don't really know too much about this stuff, so by means go ahead and try. > I'll just test it and will report the results.. Cool! /Mike -- ✌ Michael Gratton. Geeknik since 1976. ✇ <http://web.vee.net/>
Attachment:
signature.asc
Description: This is a digitally signed message part