Christophe Nowicki

August 29, 2006

Introspection support for DBuzilla

I’ve added methods for parsing D-BUS Introspection Data.

Now you can get informations about available interfaces, methods, signals and properties with the nsIDBusInterface object.

In order to test my methods I wrote an dbus-viwer clone in XUL : http://trac.csquad.org/browser/trunk/examples/dbus-viewer

Here is a screencast (1 Mo) where you can see dbus-viewer in action.

Filed under: Mozilla Firefox, Google Summer of Code, D-BUS — cscm @ 6:14 pm

August 21, 2006

D-BUS for Mozilla project progress #4

Sorry, I did not update my progress since one month.

Here is my current progress on that project :

  • Signals are supported, you can send en receive signals
  • Introspection XML data is now parsed by my component
  • I’ve wrote an dbus-viewer clone in XUL
  • I’ve integrated Threads

But I did not release a 0.1 version because my wrapper produce a dead lock :
If you listen for a signal and call a remote method, you program get locked.
This is a common usage of D-BUS and I think that I can’t release my work without it.

This problem is caused by libdbus witch is not threads “aware” and because I don’t have a shared
lock between my threads.

Havoc Pennington explained me howto solve this issue : integrate libdbus inside my mainloop as glib as done :

GLIB Mainloop integration

This integration is hard because D-BUS is using UNIX file handle and NSPR does not provide functions to handle it.

I did not expect so many technical difficulties, but I stay motivated.
I continue to work on my project (after the end of the summer of code) and I will release version 0.1 as soon as the dead lock issue is solved.

Filed under: Google Summer of Code, D-BUS — cscm @ 6:54 am

July 18, 2006

D-BUS for Mozilla : version 0.1 is comming … soon!

Ok, boys and girls, version 0.1 is comming! ;0)

This week I was focused on documentation :

I’ve made progress in the wrapper code :

  • Mixed array are now supported : Array(1, ’string’, 2.3)
  • Threads are now wrapped.
  • Callback are now handled, but not fully : It’s working for the XPCOM part but D-BUS does not call my handle back.

I will release version 0.1 when I find an issue to the callback problems. (I’d like to see asynchronous call and signals managed by 0.1).

Filed under: Google Summer of Code, D-BUS — cscm @ 11:00 am

May 26, 2006

dbus-daemon, how to listen on TCP/IP socket?

This feature is not well documented, so there is the configuration ligne to add in your /etc/dbus-1/system.conf file :

<listen>tcp:host=localhost,port=12434</listen>

Filed under: D-BUS — cscm @ 11:18 am

Powered by WordPress