[network-manager-applet/bg/libnma-vpn-dialog-api: 1/2] libnma: add 1.10 version macros



commit be42cf14aff995461756a4ea1636f84176e4cecb
Author: Beniamino Galvani <bgalvani redhat com>
Date:   Fri Oct 12 22:20:34 2018 +0200

    libnma: add 1.10 version macros
    
    The next commit will add new libnma API. It is probably the moment to
    bump the minor version.

 src/libnma/nma-version.h.in | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/libnma/nma-version.h.in b/src/libnma/nma-version.h.in
index ba6af984..55a968e2 100644
--- a/src/libnma/nma-version.h.in
+++ b/src/libnma/nma-version.h.in
@@ -72,9 +72,11 @@
 #define NMA_VERSION_1_8_8  (NMA_ENCODE_VERSION (1, 8, 8))
 #define NMA_VERSION_1_8_10 (NMA_ENCODE_VERSION (1, 8, 10))
 #define NMA_VERSION_1_8_12 (NMA_ENCODE_VERSION (1, 8, 12))
+#define NMA_VERSION_1_8_18 (NMA_ENCODE_VERSION (1, 8, 18))
+#define NMA_VERSION_1_10   (NMA_ENCODE_VERSION (1, 10, 0))
 
-#define NMA_VERSION_CUR_STABLE  NMA_VERSION_1_8_10
-#define NMA_VERSION_NEXT_STABLE NMA_VERSION_1_8_12
+#define NMA_VERSION_CUR_STABLE  NMA_VERSION_1_8_18
+#define NMA_VERSION_NEXT_STABLE NMA_VERSION_1_10
 
 #define NMA_VERSION NMA_ENCODE_VERSION (NMA_MAJOR_VERSION, NMA_MINOR_VERSION, NMA_MICRO_VERSION)
 
@@ -123,4 +125,10 @@
 # define NMA_AVAILABLE_IN_1_8
 #endif
 
+#if NMA_VERSION_MAX_ALLOWED < NMA_VERSION_1_10
+# define NMA_AVAILABLE_IN_1_10           G_UNAVAILABLE(1,10)
+#else
+# define NMA_AVAILABLE_IN_1_10
+#endif
+
 #endif  /* NMA_VERSION_H */


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