Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Has any wizard taken a look at DBUS?

7 views
Skip to first unread message

jerry...@gmail.com

unread,
Jul 6, 2006, 8:07:12 PM7/6/06
to
Has anyone attempted to wrap the DBUS library, seems like it
might be a nice api to have available to tcl for IPC related stuff.

Jerry

Cameron Laird

unread,
Jul 6, 2006, 11:51:47 PM7/6/06
to
In article <1152230831.9...@s16g2000cws.googlegroups.com>,

I've *thought* about it. I remain undecided about how
great the value would be. Can you name use cases you
imagine for it?

Michael Schlenker

unread,
Jul 7, 2006, 4:28:05 AM7/7/06
to
jerry...@gmail.com schrieb:

> Has anyone attempted to wrap the DBUS library, seems like it
> might be a nice api to have available to tcl for IPC related stuff.
>
I've taken a look.

Yes, it would be a nice thing, especially for desktop related
integration and getting messages from the system daemons.

Basically it fills a similar niche to Tk's send or tcllib comm, but with
lots of things added.

One could go two ways to wrap libdbus:
1. use the glib based api which is simpler and merge the glib and the
Tcl event loop
2. don't use the glib stuff but the dbus low level api and write code to
integrate directly with Tcls event loop

The one thing I'm not sure about is how to represent the api into Tcl
nicely, those pathes look a lot like Tcl lists, or could be mapped to
namespaces..., and the dbus objects could be done as safe interpreters
or just plain emulated objects via namespaces etc. etc.

Michael


0 new messages