summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-09-05 11:15:00 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-09-05 13:48:45 +0200
commitfad8f1f85525c1bf698240af6e6bad0cd3636a57 (patch)
treea67803cfa92702603d972a71ab7a01dca45655d7 /tools
parent625f553077d234316b81ae81f399c99917217ae7 (diff)
downloadtelepathy-glib-fad8f1f85525c1bf698240af6e6bad0cd3636a57.tar.gz
TpProxy: Deprecate _borrow_ functions and replace them by _get_
New transfer and naming policy has been discussed in https://bugs.freedesktop.org/show_bug.cgi?id=39189 and is documented there: http://telepathy.freedesktop.org/wiki/Style/TelepathyGLib
Diffstat (limited to 'tools')
-rw-r--r--tools/glib-client-gen.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/glib-client-gen.py b/tools/glib-client-gen.py
index 6b2b97f1d..f8465a62b 100644
--- a/tools/glib-client-gen.py
+++ b/tools/glib-client-gen.py
@@ -783,9 +783,11 @@ class Generator(object):
self.b(' g_return_val_if_fail (callback != NULL || '
'weak_object == NULL, NULL);')
self.b('')
+ self.b(' G_GNUC_BEGIN_IGNORE_DEPRECATIONS')
self.b(' iface = tp_proxy_borrow_interface_by_id (')
self.b(' (TpProxy *) proxy,')
self.b(' interface, &error);')
+ self.b(' G_GNUC_END_IGNORE_DEPRECATIONS')
self.b('')
self.b(' if (iface == NULL)')
self.b(' {')
@@ -1064,8 +1066,10 @@ class Generator(object):
self.b(' g_return_val_if_fail (%s (proxy), FALSE);'
% self.proxy_assert)
self.b('')
+ self.b(' G_GNUC_BEGIN_IGNORE_DEPRECATIONS')
self.b(' iface = tp_proxy_borrow_interface_by_id')
self.b(' ((TpProxy *) proxy, interface, error);')
+ self.b(' G_GNUC_END_IGNORE_DEPRECATIONS')
self.b('')
self.b(' if (iface == NULL)')
self.b(' return FALSE;')