[vte] Add VTE_SEAL and VTE_DEPRECATED macros



commit 106081e2d1875d893e598a4d20bfab266b6a764e
Author: Christian Persch <chpe gnome org>
Date:   Wed Mar 17 18:40:49 2010 +0100

    Add VTE_SEAL and VTE_DEPRECATED macros

 src/vte.h |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.h b/src/vte.h
index 53fb2d8..ef0082e 100644
--- a/src/vte.h
+++ b/src/vte.h
@@ -36,6 +36,18 @@
 
 G_BEGIN_DECLS
 
+#ifdef GSEAL_ENABLE
+#define VTE_SEAL(name) _vte_sealed__ ## name
+#else
+#define VTE_SEAL(name) name
+#endif
+
+#ifdef VTE_DISABLE_DEPRECATED
+#define VTE_DEPRECATED(name) _vte_deprecated__ ## name
+#else
+#define VTE_DEPRECATED(name) name
+#endif
+
 /* Private implementation details. */
 typedef struct _VteTerminalPrivate VteTerminalPrivate;
 
@@ -567,6 +579,9 @@ void vte_terminal_set_font_from_string_full(VteTerminal *terminal,
 
 #endif /* VTE_DISABLE_DEPRECATED */
 
+#undef VTE_SEAL
+#undef VTE_DEPRECATED
+
 G_END_DECLS
 
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]