telepathy-glib: Add _TP_DEPRECATED_IN_UNRELEASED, ..._FOR

Simon McVittie smcv at kemper.freedesktop.org
Mon May 7 09:10:35 PDT 2012


Module: telepathy-glib
Branch: master
Commit: 1bc24d3ed03c22202a9628892f0e2dc1efa37f86
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=1bc24d3ed03c22202a9628892f0e2dc1efa37f86

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Fri May  4 16:36:10 2012 +0100

Add _TP_DEPRECATED_IN_UNRELEASED, ..._FOR

Reviewed-by: Xavier Claessens <xavier.claessens at collabora.co.uk>

---

 telepathy-glib/defs.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/defs.h b/telepathy-glib/defs.h
index 3c21e42..85677f4 100644
--- a/telepathy-glib/defs.h
+++ b/telepathy-glib/defs.h
@@ -232,6 +232,14 @@ G_BEGIN_DECLS
 # define _TP_DEPRECATED_IN_1_0_FOR(f) /* nothing */
 #endif
 
+#if TP_VERSION_MIN_REQUIRED >= _TP_VERSION_CUR_STABLE
+# define _TP_DEPRECATED_IN_UNRELEASED _TP_DEPRECATED
+# define _TP_DEPRECATED_IN_UNRELEASED_FOR(f) _TP_DEPRECATED_FOR(f)
+#else
+# define _TP_DEPRECATED_IN_UNRELEASED /* nothing */
+# define _TP_DEPRECATED_IN_UNRELEASED_FOR(f) /* nothing */
+#endif
+
 #if TP_VERSION_MAX_ALLOWED < TP_VERSION_0_16
 # define _TP_AVAILABLE_IN_0_16 _TP_UNAVAILABLE(0, 16)
 #else



More information about the telepathy-commits mailing list