[libhandy] version: Add 1.4
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] version: Add 1.4
- Date: Thu, 29 Apr 2021 09:43:25 +0000 (UTC)
commit e73919140057b11fd821a88e47565cf9ae92acab
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Apr 28 16:07:06 2021 +0200
version: Add 1.4
doc/handy-docs.xml | 5 +++++
src/hdy-version.h.in | 32 ++++++++++++++++++++++++++++++--
2 files changed, 35 insertions(+), 2 deletions(-)
---
diff --git a/doc/handy-docs.xml b/doc/handy-docs.xml
index bd8cba41..435171d6 100644
--- a/doc/handy-docs.xml
+++ b/doc/handy-docs.xml
@@ -141,6 +141,11 @@
<xi:include href="xml/api-index-1.2.xml"><xi:fallback /></xi:include>
</index>
+ <index id="api-index-1-4" role="1.4">
+ <title>Index of new symbols in 1.4</title>
+ <xi:include href="xml/api-index-1.4.xml"><xi:fallback /></xi:include>
+ </index>
+
<index id="annotations-glossary">
<title>Annotations glossary</title>
<xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
diff --git a/src/hdy-version.h.in b/src/hdy-version.h.in
index c6f1ade2..b31f3043 100644
--- a/src/hdy-version.h.in
+++ b/src/hdy-version.h.in
@@ -90,6 +90,16 @@
*/
#define HDY_VERSION_1_2 (HDY_ENCODE_VERSION (1, 2, 0))
+/**
+ * HDY_VERSION_1_4:
+ *
+ * A macro that evaluates to the 1.4 version of Handy, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 1.4
+ */
+#define HDY_VERSION_1_4 (HDY_ENCODE_VERSION (1, 4, 0))
+
#ifndef _HDY_EXTERN
#define _HDY_EXTERN extern
#endif
@@ -107,11 +117,11 @@
#endif
#ifndef HDY_VERSION_MAX_ALLOWED
-# define HDY_VERSION_MAX_ALLOWED HDY_VERSION_1_2
+# define HDY_VERSION_MAX_ALLOWED HDY_VERSION_1_4
#endif
#ifndef HDY_VERSION_MIN_REQUIRED
-# define HDY_VERSION_MIN_REQUIRED HDY_VERSION_1_2
+# define HDY_VERSION_MIN_REQUIRED HDY_VERSION_1_4
#endif
#define HDY_UNAVAILABLE(major, minor) G_UNAVAILABLE(major, minor) _HDY_EXTERN
@@ -135,3 +145,21 @@
# define HDY_DEPRECATED_TYPE_IN_1_2
# define HDY_DEPRECATED_TYPE_IN_1_2_FOR(f)
#endif
+
+#if HDY_VERSION_MAX_ALLOWED < HDY_VERSION_1_4
+# define HDY_AVAILABLE_IN_1_4 HDY_UNAVAILABLE(1, 4)
+#else
+# define HDY_AVAILABLE_IN_1_4 _HDY_EXTERN
+#endif
+
+#if HDY_VERSION_MIN_REQUIRED >= HDY_VERSION_1_4
+# define HDY_DEPRECATED_IN_1_4 _HDY_DEPRECATED
+# define HDY_DEPRECATED_IN_1_4_FOR(f) _HDY_DEPRECATED_FOR(f)
+# define HDY_DEPRECATED_TYPE_IN_1_4 _HDY_DEPRECATED_TYPE
+# define HDY_DEPRECATED_TYPE_IN_1_4_FOR(f) _HDY_DEPRECATED_TYPE_FOR(f)
+#else
+# define HDY_DEPRECATED_IN_1_4 _HDY_EXTERN
+# define HDY_DEPRECATED_IN_1_4_FOR(f) _HDY_EXTERN
+# define HDY_DEPRECATED_TYPE_IN_1_4
+# define HDY_DEPRECATED_TYPE_IN_1_4_FOR(f)
+#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]