From fad8f1f85525c1bf698240af6e6bad0cd3636a57 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 5 Sep 2012 11:15:00 +0200 Subject: 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 --- tools/glib-client-gen.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') 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;') -- cgit v1.2.1