register object path + introspection

Sander Jansen s.jansen at gmail.com
Thu Jul 15 09:48:16 PDT 2010


On Thu, Jul 15, 2010 at 11:34 AM, Havoc Pennington <hp at pobox.com> wrote:
> 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 "/")

Thanks, that's just what I needed! I hate the MPRIS interface, but
it's used by every major media player out there and who is going to
listen to me :P


More information about the dbus mailing list