telepathy-glib: Add _TP_SEAL, controlled by TP_DISABLE_DEPRECATED or TP_SEAL_ENABLE

Xavier Claessens xclaesse at kemper.freedesktop.org
Mon Jun 4 04:55:01 PDT 2012


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

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

Add _TP_SEAL, controlled by TP_DISABLE_DEPRECATED or TP_SEAL_ENABLE

---

 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 ad243b2..3d7a7d8 100644
--- a/telepathy-glib/defs.h
+++ b/telepathy-glib/defs.h
@@ -281,5 +281,13 @@ G_BEGIN_DECLS
 #define _TP_GNUC_DEPRECATED_FOR(f) G_GNUC_DEPRECATED_FOR(f)
 #endif
 
+/* like G_SEAL */
+#if (defined (TP_SEAL_ENABLE) || defined (TP_DISABLE_DEPRECATED)) \
+  && !defined (_TP_COMPILATION)
+# define _TP_SEAL(ident) _tp_sealed__ ## ident
+#else
+# define _TP_SEAL(ident) ident
+#endif
+
 G_END_DECLS
 #endif



More information about the telepathy-commits mailing list