[PATCH?] dbus_select

Jozef Vesely vesely at gjh.sk
Tue May 1 23:45:30 PDT 2007


Hello,

there are lot of programs with mainloop build around select().
I have created wrapper arround select(), which keeps track
of dbus's file descriptors and adds them to those, which user
wants to select on.

Thus any application built around select() can be integrated
with dbus simply by replacing select() with dbus_select().

My implementation is at: 
http: //www.kolej.mff.cuni.cz/~vesej3am/linux/dbus-select.c
http: //www.kolej.mff.cuni.cz/~vesej3am/linux/dbus-select.h

However it would be helpful if it could be integrated into
libdbus since the code could be much simplified if it could
access internals of DBusConnection and didn't have to keep
own lists of DBusWatches and DBusTimeout.

This was my first time with dbus, so any comments are welcomed.

Bye

Jozef Vesely
vesely at gjh.sk





More information about the dbus mailing list