Bug 58103 - Add gobject-introspection support
Summary: Add gobject-introspection support
Status: NEW
Alias: None
Product: Wocky
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://cgit.collabora.com/git/user/wj...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-11 00:28 UTC by Will Thompson
Modified: 2012-12-11 00:28 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Will Thompson 2012-12-11 00:28:41 UTC
I had a quick stab at this. I got it working far enough to let me connect (which is cool) but there are some problems:

• You need to call Wocky.init() manually.
• wocky_porter_register_handler_* need to have GDestroyNotify parameters for their callbacks' user_data. This got me thinking: why do the _by_stanza variants take both the stanza to match, *and* a type & subtype?
• wocky_stanza_build() pretty obviously doesn't work. That's fine, we'll build the trees ourself. But…
• wocky_node_add_child() ends up with you crasing because the return defaults to (transfer full) and so python frees the child node (which is actually owned by the parent) when it falls out of scope. Obviously pretty bad. But changing it to (transfer none) still crashed when you look at parent.children, and I'm not sure why.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.