summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-04-27 15:11:29 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-04-30 18:47:57 +0100
commit854e7217f94d37ad9ca37f5893a04f2e3f178165 (patch)
tree350ce4fde3ccb49923ce199107cd97f263d3740b
parent51eaaea15ef91a78c158a6ffca41b01f271e4214 (diff)
Export tp_cli_channel_add_signals etc.
I don't like exporting more API than we have to, but this is a necessary evil: TpChannel, etc. initialization need to call these functions. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46835
-rw-r--r--tools/glib-client-gen.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/glib-client-gen.py b/tools/glib-client-gen.py
index e2ea3fc7b..c357470e5 100644
--- a/tools/glib-client-gen.py
+++ b/tools/glib-client-gen.py
@@ -1213,6 +1213,12 @@ class Generator(object):
self.do_interface(node)
if self.group is not None:
+ self.h('void %s_%s_add_signals (TpProxy *self,'
+ % (self.prefix_lc, self.group))
+ self.h(' guint quark,')
+ self.h(' DBusGProxy *proxy,')
+ self.h(' gpointer unused);')
+ self.h('')
self.b('/*')
self.b(' * %s_%s_add_signals:' % (self.prefix_lc, self.group))
@@ -1229,7 +1235,7 @@ class Generator(object):
self.b(' * This function should be used as a signal handler for')
self.b(' * #TpProxy::interface-added.')
self.b(' */')
- self.b('static void G_GNUC_UNUSED')
+ self.b('void')
self.b('%s_%s_add_signals (TpProxy *self G_GNUC_UNUSED,'
% (self.prefix_lc, self.group))
self.b(' guint quark,')