summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Aina <emanuele.aina@collabora.com>2012-09-28 08:20:31 +0000
committerEmanuele Aina <emanuele.aina@collabora.com>2012-10-10 20:27:44 +0200
commitcb4620d14f7188bfe57c6354b873f180df36400f (patch)
treee7d246575eb72bc67d6687da5e7632754836310a
parent36c2343001e311df47452d89557571ea250db4ef (diff)
downloadclutter-cb4620d14f7188bfe57c6354b873f180df36400f.tar.gz
version: Add 1.14 version macros
https://bugzilla.gnome.org/show_bug.cgi?id=685028
-rw-r--r--clutter/clutter-macros.h14
-rw-r--r--clutter/clutter-version.h.in10
2 files changed, 24 insertions, 0 deletions
diff --git a/clutter/clutter-macros.h b/clutter/clutter-macros.h
index 4076be174..6aa8995f3 100644
--- a/clutter/clutter-macros.h
+++ b/clutter/clutter-macros.h
@@ -262,4 +262,18 @@
# define CLUTTER_AVAILABLE_IN_1_12
#endif
+#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_14
+# define CLUTTER_DEPRECATED_IN_1_14 CLUTTER_DEPRECATED
+# define CLUTTER_DEPRECATED_IN_1_14_FOR(f) CLUTTER_DEPRECATED_FOR(f)
+#else
+# define CLUTTER_DEPRECATED_IN_1_14
+# define CLUTTER_DEPRECATED_IN_1_14_FOR(f)
+#endif
+
+#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_14
+# define CLUTTER_AVAILABLE_IN_1_14 CLUTTER_UNAVAILABLE(1, 14)
+#else
+# define CLUTTER_AVAILABLE_IN_1_14
+#endif
+
#endif /* __CLUTTER_MACROS_H__ */
diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in
index 76f0c0e08..ec66b2297 100644
--- a/clutter/clutter-version.h.in
+++ b/clutter/clutter-version.h.in
@@ -194,6 +194,16 @@ G_BEGIN_DECLS
*/
#define CLUTTER_VERSION_1_12 (G_ENCODE_VERSION (1, 12))
+/**
+ * CLUTTER_VERSION_1_14:
+ *
+ * A macro that evaluates to the 1.14 version of Clutter, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 1.14
+ */
+#define CLUTTER_VERSION_1_14 (G_ENCODE_VERSION (1, 14))
+
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
*/