Re: Clarification on ObjectManager GetManagedObjects & InterfacesRemoved

Thiago Macieira <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <1546801.Gr7AHp2bGK@tjmaciei-mobl4>
On Monday 30 March 2015 18:29:31 Tony Asleson wrote:
> I get one interface: org.freedesktop.UDisks2.Block from GetManagedObjects
> 
> However, this object actually implements the following interfaces
> according to the introspection data:
> 
> org.freedesktop.UDisks2.Block
> org.freedesktop.DBus.Properties
> org.freedesktop.DBus.Peer
> org.freedesktop.DBus.Introspectable
> 
> 
> Why doesn't the return data from GetManagedObjects include the
> interfaces: Properties, Peer and Introspectable with an empty dict?

I'm guessing it's a bug. 

Though it's also unnecessary... The Peer interface always exists, so there's 
no value in listing it. The Introspectable and Properties interfaces are only 
useful if you're going to call it and you'd get the same values as you're 
otherwise getting with GetManagedObjects.

> Additionally, if this object hypothetically did a signal for:
> InterfacesRemoved and the object went totally away, which one would be
> correct:
> 
> 1. /org/freedesktop/UDisks2/block_devices/dm_2d0,
> [org.freedesktop.UDisks2.Block]
> 
> 2. /org/freedesktop/UDisks2/block_devices/dm_2d0,
> [org.freedesktop.UDisks2.Block, org.freedesktop.DBus.Properties,
> org.freedesktop.DBus.Peer, org.freedesktop.DBus.Introspectable]

The one that matches the return value from GetManagedObjects.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

_______________________________________________
dbus mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.