[clutter] version: Add 1.12 version macros



commit 1b3777f16911e944288443c3bbe0d15604c16a6e
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Thu Mar 22 10:11:11 2012 +0000

    version: Add 1.12 version macros

 clutter/clutter-macros.h     |   14 ++++++++++++++
 clutter/clutter-version.h.in |   10 ++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-macros.h b/clutter/clutter-macros.h
index 50eb021..dd8033d 100644
--- a/clutter/clutter-macros.h
+++ b/clutter/clutter-macros.h
@@ -248,6 +248,20 @@
 # define CLUTTER_AVAILABLE_IN_1_10
 #endif
 
+#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_12
+# define CLUTTER_DEPRECATED_IN_1_12             CLUTTER_DEPRECATED
+# define CLUTTER_DEPRECATED_IN_1_12_FOR(f)      CLUTTER_DEPRECATED_FOR(f)
+#else
+# define CLUTTER_DEPRECATED_IN_1_12
+# define CLUTTER_DEPRECATED_IN_1_12_FOR(f)
+#endif
+
+#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_12
+# define CLUTTER_AVAILABLE_IN_1_12              CLUTTER_UNAVAILABLE(1, 12)
+#else
+# define CLUTTER_AVAILABLE_IN_1_12
+#endif
+
 /**
  * CLUTTER_CAIRO_FORMAT_ARGB32:
  *
diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in
index fcddbd7..0fa9759 100644
--- a/clutter/clutter-version.h.in
+++ b/clutter/clutter-version.h.in
@@ -184,6 +184,16 @@ G_BEGIN_DECLS
  */
 #define CLUTTER_VERSION_1_10    (G_ENCODE_VERSION (1, 10))
 
+/**
+ * CLUTTER_VERSION_1_12:
+ *
+ * A macro that evaluates to the 1.12 version of Clutter, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 1.12
+ */
+#define CLUTTER_VERSION_1_12    (G_ENCODE_VERSION (1, 12))
+
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target
  */



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