register object path + introspection

Havoc Pennington hp at pobox.com
Thu Jul 15 09:34:13 PDT 2010


Hi,

On Thu, Jul 15, 2010 at 12:23 PM, Sander Jansen <s.jansen at gmail.com> wrote:
> So my problems appear when trying to implement the MPRIS standard
> (http://xmms2.org/wiki/MPRIS) It requires you to provide methods on
> the root path "/". So when I register the object path "/", my
> automatic introspection for the other two paths
> (/org/fifthplanet/gogglesmm && /StatusNotifierItem) get broken. I can
> easily fix this by providing
> <node name="StatusNotifierItem"/> and <node name="org"/> to my
> introspection data, but it would require the mpris object in my
> application to know about all the other objects my application
> provides. And the whole idea is that it shouldn't have to know.
>
> Any ideas on how to solve this problem? Does the dbus library provide
> a way to list all registered objects (within the app)?

Yes, the dbus_connection_list_registered() API is intended to solve this.

(though it's also broken that MPRIS uses "/")

Havoc


More information about the dbus mailing list