[Bug 28782] Migrate from dbus-glib to glib's GDBus

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 17 04:50:06 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=28782

--- Comment #15 from Simon McVittie <simon.mcvittie at collabora.co.uk> ---
(In reply to comment #14)
> I still implement each method of o.fd.DBus.Properties "the hard way" with
> TpDBusPropertiesMixin, just like we did for dbus-glib.

Expanding on that a little: this takes precedence over GDBus' own
implementation, just like it took precedence over dbus-glib's own
implementation.

The pseudocode is now something like this:

* incoming method call: o.fd.DBus.Properties.$method($iface, ...)
  where $method in { Get, Set, GetAll }
* does its object path have a GDBusInterfaceVTable for o.fd.DBus.Properties?
  - yes: call $method using that vtable; stop [*]
  - no: continue
* does it have a GDBusInterfaceVTable for $iface?
  - yes: continue
  - no: raise an error; stop
* does it have a property getter or setter in the GDBusInterfaceVTable
  for $iface?
  - yes: call it; stop
  - no: continue
* try calling the method_call function in the GDBusInterfaceVTable for $iface,
  with interface_name="org.freedesktop.DBus.Properties" (*not* $iface)
  and method_name=$method

We currently do the line marked [*].

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the telepathy-bugs mailing list