[Bug 70731] TpBaseConnectionManager, TpBaseProtocol: be introspectable

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 22 17:22:17 CEST 2013


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

--- Comment #11 from Simon McVittie <simon.mcvittie at collabora.co.uk> ---
Created attachment 88004
  --> https://bugs.freedesktop.org/attachment.cgi?id=88004&action=edit
[WiP, doesn't work] make Protocol.Parameters introspectable

---

As far as I can see, this ought to work, but I can't seem to persuade g-i to
override either cls->get_parameters or cls->get_parameters_array with a Python
or JS implementation. If you can see what I'm doing wrong, please say.

Inability to override cls->get_parameters is understandable: the calling
convention is pretty awkward for an interpreted language (it wants a flattened
array of relatively complicated structs) so I would understand if g-i, gjs or
pygi took the "not going to need it" approach. So I tried turning those structs
into a backwards-compatible boxed type in a GPtrArray.

However, I can't seem to override get_parameters_array either - the
implementation remains set to tp_base_protocol_default_dup_parameters_array,
which is no good to me.

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


More information about the telepathy-bugs mailing list