Proposing ObjectManager interface

David Zeuthen zeuthen at gmail.com
Sun Feb 27 04:40:36 PST 2011


Hey,

On Sun, Feb 27, 2011 at 7:28 AM, David Zeuthen <zeuthen at gmail.com> wrote:
> Concretely, what I'm proposing is that we add this interface to the spec
>
>  <interface name="org.freedesktop.DBus.ObjectManager">
>    <method name="GetAll">
>      <arg type="a(oa(sa{sv}))"
> name="object_paths_interfaces_and_properties" direction="out"/>
>    </method>
>    <signal name="InterfacesAdded">
>      <arg type="o" name="object_path"/>
>      <arg type="a(sa{sv})" name="interfaces_and_properties"/>
>    </signal>
>    <signal name="InterfacesRemoved">
>      <arg type="o" name="object_path"/>
>      <arg type="as" name="interfaces"/>
>    </signal>
>  </interface>
>
>  Clients start priming their caches by calling the method
>  org.gtk.GDBus.ObjectManager.GetAll(). This returns an array of all
>  existing objects along with the interfaces and properties for each
>  object. Every time a new object is added (or an existing object
>  gains one or more new interfaces), the signal
>  org.gtk.GDBus.ObjectManager::InterfacesAdded is emitted. This
>  signal contains all properties for the added interfaces. Similarly,
>  every time an object is removed (or an existing object loses one
>  or more interfaces) the org.gtk.GDBus.ObjectManager::InterfacesRemoved
>  signal is emitted.

And clearly s/org.gtk.GDBus/org.freedesktop.DBus/ everywhere above and
also some more introductory text. If there's an interest in this, I'll
work on a patch...

    David


More information about the dbus mailing list