[libadwaita/wip/exalm/tab-overview: 1/8] version: Add 1.3 version macros




commit 8026866f6cc84eda0d6c2a69ab3602519fe427fa
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Sep 6 06:27:14 2022 +0400

    version: Add 1.3 version macros

 src/adw-version.h.in | 34 +++++++++++++++++++++++++++++++---
 1 file changed, 31 insertions(+), 3 deletions(-)
---
diff --git a/src/adw-version.h.in b/src/adw-version.h.in
index fe84c528..4fcdeaa8 100644
--- a/src/adw-version.h.in
+++ b/src/adw-version.h.in
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Purism SPC
+ * Copyright (C) 2017-2022 Purism SPC
  *
  * SPDX-License-Identifier: LGPL-2.1-or-later
  */
@@ -97,16 +97,26 @@ G_BEGIN_DECLS
  */
 #define ADW_VERSION_1_2 (ADW_ENCODE_VERSION (1, 2, 0))
 
+/**
+ * ADW_VERSION_1_3:
+ *
+ * A macro that evaluates to the 1.3 version of Adwaita, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 1.3
+ */
+#define ADW_VERSION_1_3 (ADW_ENCODE_VERSION (1, 3, 0))
+
 #ifndef _ADW_EXTERN
 #define _ADW_EXTERN extern
 #endif
 
 #ifndef ADW_VERSION_MAX_ALLOWED
-# define ADW_VERSION_MAX_ALLOWED ADW_VERSION_1_2
+# define ADW_VERSION_MAX_ALLOWED ADW_VERSION_1_3
 #endif
 
 #ifndef ADW_VERSION_MIN_REQUIRED
-# define ADW_VERSION_MIN_REQUIRED ADW_VERSION_1_2
+# define ADW_VERSION_MIN_REQUIRED ADW_VERSION_1_3
 #endif
 
 #if ADW_VERSION_MAX_ALLOWED < ADW_VERSION_1_1
@@ -145,6 +155,24 @@ G_BEGIN_DECLS
 # define ADW_DEPRECATED_TYPE_IN_1_2_FOR(f)
 #endif
 
+#if ADW_VERSION_MAX_ALLOWED < ADW_VERSION_1_3
+# define ADW_AVAILABLE_IN_1_3 ADW_UNAVAILABLE(1, 3)
+#else
+# define ADW_AVAILABLE_IN_1_3 _ADW_EXTERN
+#endif
+
+#if ADW_VERSION_MIN_REQUIRED >= ADW_VERSION_1_3
+# define ADW_DEPRECATED_IN_1_3             _ADW_DEPRECATED
+# define ADW_DEPRECATED_IN_1_3_FOR(f)      _ADW_DEPRECATED_FOR(f)
+# define ADW_DEPRECATED_TYPE_IN_1_3        _ADW_DEPRECATED_TYPE
+# define ADW_DEPRECATED_TYPE_IN_1_3_FOR(f) _ADW_DEPRECATED_TYPE_FOR(f)
+#else
+# define ADW_DEPRECATED_IN_1_3             _ADW_EXTERN
+# define ADW_DEPRECATED_IN_1_3_FOR(f)      _ADW_EXTERN
+# define ADW_DEPRECATED_TYPE_IN_1_3
+# define ADW_DEPRECATED_TYPE_IN_1_3_FOR(f)
+#endif
+
 #define ADW_UNAVAILABLE(major, minor) G_UNAVAILABLE(major, minor) _ADW_EXTERN
 
 #define ADW_AVAILABLE_IN_ALL _ADW_EXTERN


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