[Bug 63070] New: Make WockyDataForm API nicer, and use GVariant rather than GValue
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Apr 3 12:23:05 CEST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=63070
Priority: medium
Bug ID: 63070
Assignee: telepathy-bugs at lists.freedesktop.org
Summary: Make WockyDataForm API nicer, and use GVariant rather
than GValue
QA Contact: telepathy-bugs at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: All
Reporter: will.thompson at collabora.co.uk
Hardware: Other
Status: NEW
Version: unspecified
Component: General
Product: Wocky
The WockyDataForm API was pretty anaemic and developer-hostile. I've added a
bunch of accessors, made the contents of some structs private, and made it use
GVariant rather than GValue, thus letting me delete the copy-pasta
wocky_g_value_slice_* functions.
http://cgit.collabora.com/git/user/wjt/wocky/log/?h=make-data-forms-use-gvariant
tests/wocky-data-form-test.c | 111 ++++++++++------
tests/wocky-pubsub-node-test.c | 2 +-
tests/wocky-pubsub-service-test.c | 4 +-
wocky/wocky-caps-hash.c | 69 ++++------
wocky/wocky-data-form.c | 417
++++++++++++++++++++++++++++++++++++++++++++++++----------
wocky/wocky-data-form.h | 61 +++++----
wocky/wocky-utils.c | 330
----------------------------------------------
wocky/wocky-utils.h | 21 ---
8 files changed, 485 insertions(+), 530 deletions(-)
http://cgit.collabora.com/git/user/wjt/telepathy-gabble/log/?h=data-forms
lib/ext/wocky | 2 +-
src/connection.c | 30 ++++++++----------------------
src/ft-manager.c | 28 +++++++++++++---------------
3 files changed, 22 insertions(+), 38 deletions(-)
I was disappointed that there was not more of a code-size reduction in code
which uses WockyDataForm, but then I realised that there is not much code which
uses WockyDataForm.
--
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