[next] telepathy-glib: Export tp_cli_channel_add_signals etc.

Simon McVittie smcv at kemper.freedesktop.org
Mon Apr 30 11:04:03 PDT 2012


Module: telepathy-glib
Branch: next
Commit: 854e7217f94d37ad9ca37f5893a04f2e3f178165
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=854e7217f94d37ad9ca37f5893a04f2e3f178165

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Fri Apr 27 15:11:29 2012 +0100

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 at collabora.co.uk>
Reviewed-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46835

---

 tools/glib-client-gen.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

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,')



More information about the telepathy-commits mailing list