From 36f78affca59395441410ee732d7afbc4665489f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 27 Apr 2012 15:11:29 +0100 Subject: [PATCH 2/6] 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. --- tools/glib-client-gen.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/glib-client-gen.py b/tools/glib-client-gen.py index e2ea3fc..c357470 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,') -- 1.7.10