[Portland] event loop abstraction / libxdg-vfs
nf2
nf2 at scheinwelt.at
Fri Jun 16 18:44:27 PDT 2006
"event loop abstraction"-library:
I have asked Lennart Poettering from the Avahi-Project
(http://avahi.org/) about the possibility of porting the "event loop
abstraction" code from Avahi to a stand-alone library. He seems to like
the idea and says he wouldn't mind dual-licensing the code under the BSD
license used in Portland...
(read his proposal for "event loop abstraction" in 2005:
*http://article.gmane.org/gmane.linux.xdg.devel/6591)*
What i like about "event loop abstraction" is that you can write
asynchronous cross-toolkit infrastructure libraries (dapi???) without
depending on a certain IPC system. You can just hide that IPC stuff.
For instance you can't tell from the Avahi-client-API that it's using
DBUS internally: http://avahi.org/browser/trunk/avahi-client/client.h.
You just have to pass an AvahiPoll
http://avahi.org/browser/trunk/avahi-common/watch.h) pointer to the
library. There are AvahiPoll adaptors for Qt3, Qt4, Glib2.0 and also for
DBUS.
By the way: Here is a client-library for the xdg_vfs_gnome and
xdg_vfs_kde executables:
http://www.scheinwelt.at/~norbertf/dadapt/files/xdg_utils/doc/libxdg-vfs.html
Perhaps it could become part of the "dapi technology preview"...
Norbert
More information about the Portland
mailing list