GNOME Bugzilla – Bug 698184
NMSecretAgent is not introspectable
Last modified: 2013-04-19 13:41:11 UTC
/usr/share/gir-1.0/NMClient-1.0.gir: The vfuncs of NMSecretAgent are not introspectable, and also have wrong types in some cases (like "hints"): <class name="SecretAgent" [...] <virtual-method name="get_secrets" introspectable="0"> [...] <parameter name="hints" transfer-ownership="none"> <type name="utf8" c:type="const char**"/> </parameter> Without this, GI clients can't set up their own SecretAgent. I need this for the integration test suite to cover WPA2 and friends.
Created attachment 241727 [details] [review] libnm-glib: Make SecretAgent introspectable The nm_secret_agent_*_secrets() methods are already correctly annotated, just the vfunc reference was wrong. It seems this is not yet sufficient as the NMSecretAgentGetSecretsFunc hash-in-hash currently cannot be built from Python in a straightforward way (I'll continue to investigate that, or use D-BUS directly for now). But this at least enables the other vfuncs.
Thanks for the review! I can't push to the NM git repository, so you (or some other commiter) has to push that for me. Bug 698175 is another (and much more important) introspection fix, can that go in as well? Thanks, Martin
Attachment 241727 [details] pushed as d5fb24b - libnm-glib: Make SecretAgent introspectable