[glib/wip/chergert/g_set_str: 67/69] gversionmacros: Add version macros for GLib 2.76




commit 307e4008a51d21414d505fa881e3fcd21f8fb6d3
Author: Christian Hergert <chergert redhat com>
Date:   Wed Oct 12 11:41:39 2022 -0500

    gversionmacros: Add version macros for GLib 2.76
    
    Signed-off-by: Christian Hergert <chergert redhat com>

 docs/reference/gio/gio-docs.xml         |  4 +++
 docs/reference/glib/glib-docs.xml       |  4 +++
 docs/reference/glib/glib-sections.txt   | 14 +++++++++++
 docs/reference/gobject/gobject-docs.xml |  4 +++
 glib/gversionmacros.h                   | 44 +++++++++++++++++++++++++++++++++
 5 files changed, 70 insertions(+)
---
diff --git a/docs/reference/gio/gio-docs.xml b/docs/reference/gio/gio-docs.xml
index bee46875ff..b3dd9f0c9b 100644
--- a/docs/reference/gio/gio-docs.xml
+++ b/docs/reference/gio/gio-docs.xml
@@ -404,6 +404,10 @@
     <title>Index of new symbols in 2.74</title>
     <xi:include href="xml/api-index-2.74.xml"><xi:fallback /></xi:include>
   </index>
+  <index id="api-index-2-76" role="2.76">
+    <title>Index of new symbols in 2.76</title>
+    <xi:include href="xml/api-index-2.76.xml"><xi:fallback /></xi:include>
+  </index>
 
   <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
 
diff --git a/docs/reference/glib/glib-docs.xml b/docs/reference/glib/glib-docs.xml
index b3928257e4..c88052c080 100644
--- a/docs/reference/glib/glib-docs.xml
+++ b/docs/reference/glib/glib-docs.xml
@@ -300,6 +300,10 @@
     <title>Index of new symbols in 2.74</title>
     <xi:include href="xml/api-index-2.74.xml"><xi:fallback /></xi:include>
   </index>
+  <index id="api-index-2-76" role="2.76">
+    <title>Index of new symbols in 2.76</title>
+    <xi:include href="xml/api-index-2.76.xml"><xi:fallback /></xi:include>
+  </index>
 
   <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
 
diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt
index 38b35386e3..251d0a09c9 100644
--- a/docs/reference/glib/glib-sections.txt
+++ b/docs/reference/glib/glib-sections.txt
@@ -141,6 +141,7 @@ GLIB_VERSION_2_68
 GLIB_VERSION_2_70
 GLIB_VERSION_2_72
 GLIB_VERSION_2_74
+GLIB_VERSION_2_76
 GLIB_VERSION_CUR_STABLE
 GLIB_VERSION_PREV_STABLE
 GLIB_VERSION_MIN_REQUIRED
@@ -174,6 +175,7 @@ GLIB_AVAILABLE_ENUMERATOR_IN_2_68
 GLIB_AVAILABLE_ENUMERATOR_IN_2_70
 GLIB_AVAILABLE_ENUMERATOR_IN_2_72
 GLIB_AVAILABLE_ENUMERATOR_IN_2_74
+GLIB_AVAILABLE_ENUMERATOR_IN_2_76
 GLIB_AVAILABLE_IN_ALL
 GLIB_AVAILABLE_IN_2_26
 GLIB_AVAILABLE_IN_2_28
@@ -200,6 +202,7 @@ GLIB_AVAILABLE_IN_2_68
 GLIB_AVAILABLE_IN_2_70
 GLIB_AVAILABLE_IN_2_72
 GLIB_AVAILABLE_IN_2_74
+GLIB_AVAILABLE_IN_2_76
 GLIB_AVAILABLE_MACRO_IN_2_26
 GLIB_AVAILABLE_MACRO_IN_2_28
 GLIB_AVAILABLE_MACRO_IN_2_30
@@ -225,6 +228,7 @@ GLIB_AVAILABLE_MACRO_IN_2_68
 GLIB_AVAILABLE_MACRO_IN_2_70
 GLIB_AVAILABLE_MACRO_IN_2_72
 GLIB_AVAILABLE_MACRO_IN_2_74
+GLIB_AVAILABLE_MACRO_IN_2_76
 GLIB_AVAILABLE_STATIC_INLINE_IN_2_44
 GLIB_AVAILABLE_STATIC_INLINE_IN_2_60
 GLIB_AVAILABLE_STATIC_INLINE_IN_2_62
@@ -234,6 +238,7 @@ GLIB_AVAILABLE_STATIC_INLINE_IN_2_68
 GLIB_AVAILABLE_STATIC_INLINE_IN_2_70
 GLIB_AVAILABLE_STATIC_INLINE_IN_2_72
 GLIB_AVAILABLE_STATIC_INLINE_IN_2_74
+GLIB_AVAILABLE_STATIC_INLINE_IN_2_76
 GLIB_AVAILABLE_TYPE_IN_2_26
 GLIB_AVAILABLE_TYPE_IN_2_28
 GLIB_AVAILABLE_TYPE_IN_2_30
@@ -259,6 +264,7 @@ GLIB_AVAILABLE_TYPE_IN_2_68
 GLIB_AVAILABLE_TYPE_IN_2_70
 GLIB_AVAILABLE_TYPE_IN_2_72
 GLIB_AVAILABLE_TYPE_IN_2_74
+GLIB_AVAILABLE_TYPE_IN_2_76
 GLIB_DEPRECATED_ENUMERATOR
 GLIB_DEPRECATED_ENUMERATOR_FOR
 GLIB_DEPRECATED_ENUMERATOR_IN_2_26
@@ -311,6 +317,8 @@ GLIB_DEPRECATED_ENUMERATOR_IN_2_72
 GLIB_DEPRECATED_ENUMERATOR_IN_2_72_FOR
 GLIB_DEPRECATED_ENUMERATOR_IN_2_74
 GLIB_DEPRECATED_ENUMERATOR_IN_2_74_FOR
+GLIB_DEPRECATED_ENUMERATOR_IN_2_76
+GLIB_DEPRECATED_ENUMERATOR_IN_2_76_FOR
 GLIB_DEPRECATED_IN_2_26
 GLIB_DEPRECATED_IN_2_26_FOR
 GLIB_DEPRECATED_IN_2_28
@@ -361,6 +369,8 @@ GLIB_DEPRECATED_IN_2_72
 GLIB_DEPRECATED_IN_2_72_FOR
 GLIB_DEPRECATED_IN_2_74
 GLIB_DEPRECATED_IN_2_74_FOR
+GLIB_DEPRECATED_IN_2_76
+GLIB_DEPRECATED_IN_2_76_FOR
 GLIB_DEPRECATED_MACRO
 GLIB_DEPRECATED_MACRO_FOR
 GLIB_DEPRECATED_MACRO_IN_2_26
@@ -413,6 +423,8 @@ GLIB_DEPRECATED_MACRO_IN_2_72
 GLIB_DEPRECATED_MACRO_IN_2_72_FOR
 GLIB_DEPRECATED_MACRO_IN_2_74
 GLIB_DEPRECATED_MACRO_IN_2_74_FOR
+GLIB_DEPRECATED_MACRO_IN_2_76
+GLIB_DEPRECATED_MACRO_IN_2_76_FOR
 GLIB_DEPRECATED_TYPE
 GLIB_DEPRECATED_TYPE_FOR
 GLIB_DEPRECATED_TYPE_IN_2_26
@@ -465,6 +477,8 @@ GLIB_DEPRECATED_TYPE_IN_2_72
 GLIB_DEPRECATED_TYPE_IN_2_72_FOR
 GLIB_DEPRECATED_TYPE_IN_2_74
 GLIB_DEPRECATED_TYPE_IN_2_74_FOR
+GLIB_DEPRECATED_TYPE_IN_2_76
+GLIB_DEPRECATED_TYPE_IN_2_76_FOR
 GLIB_VERSION_CUR_STABLE
 GLIB_VERSION_PREV_STABLE
 </SECTION>
diff --git a/docs/reference/gobject/gobject-docs.xml b/docs/reference/gobject/gobject-docs.xml
index bfab048372..ed32c3e970 100644
--- a/docs/reference/gobject/gobject-docs.xml
+++ b/docs/reference/gobject/gobject-docs.xml
@@ -222,6 +222,10 @@
     <title>Index of new symbols in 2.74</title>
     <xi:include href="xml/api-index-2.74.xml"><xi:fallback /></xi:include>
   </index>
+  <index id="api-index-2-76" role="2.76">
+    <title>Index of new symbols in 2.76</title>
+    <xi:include href="xml/api-index-2.76.xml"><xi:fallback /></xi:include>
+  </index>
 
   <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
 
diff --git a/glib/gversionmacros.h b/glib/gversionmacros.h
index 4ec9e06b6d..f4a4d263b7 100644
--- a/glib/gversionmacros.h
+++ b/glib/gversionmacros.h
@@ -287,6 +287,16 @@
  */
 #define GLIB_VERSION_2_74       (G_ENCODE_VERSION (2, 74))
 
+/**
+ * GLIB_VERSION_2_76:
+ *
+ * A macro that evaluates to the 2.76 version of GLib, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 2.76
+ */
+#define GLIB_VERSION_2_76       (G_ENCODE_VERSION (2, 76))
+
 /**
  * GLIB_VERSION_CUR_STABLE:
  *
@@ -1210,4 +1220,38 @@
 # define GLIB_AVAILABLE_TYPE_IN_2_74
 #endif
 
+#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_76
+# define GLIB_DEPRECATED_IN_2_76                GLIB_DEPRECATED
+# define GLIB_DEPRECATED_IN_2_76_FOR(f)         GLIB_DEPRECATED_FOR(f)
+# define GLIB_DEPRECATED_MACRO_IN_2_76          GLIB_DEPRECATED_MACRO
+# define GLIB_DEPRECATED_MACRO_IN_2_76_FOR(f)   GLIB_DEPRECATED_MACRO_FOR(f)
+# define GLIB_DEPRECATED_ENUMERATOR_IN_2_76          GLIB_DEPRECATED_ENUMERATOR
+# define GLIB_DEPRECATED_ENUMERATOR_IN_2_76_FOR(f)   GLIB_DEPRECATED_ENUMERATOR_FOR(f)
+# define GLIB_DEPRECATED_TYPE_IN_2_76           GLIB_DEPRECATED_TYPE
+# define GLIB_DEPRECATED_TYPE_IN_2_76_FOR(f)    GLIB_DEPRECATED_TYPE_FOR(f)
+#else
+# define GLIB_DEPRECATED_IN_2_76                _GLIB_EXTERN
+# define GLIB_DEPRECATED_IN_2_76_FOR(f)         _GLIB_EXTERN
+# define GLIB_DEPRECATED_MACRO_IN_2_76
+# define GLIB_DEPRECATED_MACRO_IN_2_76_FOR(f)
+# define GLIB_DEPRECATED_ENUMERATOR_IN_2_76
+# define GLIB_DEPRECATED_ENUMERATOR_IN_2_76_FOR(f)
+# define GLIB_DEPRECATED_TYPE_IN_2_76
+# define GLIB_DEPRECATED_TYPE_IN_2_76_FOR(f)
+#endif
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_76
+# define GLIB_AVAILABLE_IN_2_76                 GLIB_UNAVAILABLE(2, 76)
+# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_76   GLIB_UNAVAILABLE_STATIC_INLINE(2, 76)
+# define GLIB_AVAILABLE_MACRO_IN_2_76           GLIB_UNAVAILABLE_MACRO(2, 76)
+# define GLIB_AVAILABLE_ENUMERATOR_IN_2_76      GLIB_UNAVAILABLE_ENUMERATOR(2, 76)
+# define GLIB_AVAILABLE_TYPE_IN_2_76            GLIB_UNAVAILABLE_TYPE(2, 76)
+#else
+# define GLIB_AVAILABLE_IN_2_76                 _GLIB_EXTERN
+# define GLIB_AVAILABLE_STATIC_INLINE_IN_2_76
+# define GLIB_AVAILABLE_MACRO_IN_2_76
+# define GLIB_AVAILABLE_ENUMERATOR_IN_2_76
+# define GLIB_AVAILABLE_TYPE_IN_2_76
+#endif
+
 #endif /*  __G_VERSION_MACROS_H__ */


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