[jsonrpc-glib] build: add 3.30 verison macros



commit b7b47058554c10d4ea55fcafb1c6f5e7f5fd0b1a
Author: Christian Hergert <chergert redhat com>
Date:   Thu Apr 26 19:47:44 2018 -0700

    build: add 3.30 verison macros

 src/jsonrpc-version-macros.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/src/jsonrpc-version-macros.h b/src/jsonrpc-version-macros.h
index dfaad1d..9eed3ec 100644
--- a/src/jsonrpc-version-macros.h
+++ b/src/jsonrpc-version-macros.h
@@ -42,6 +42,7 @@
 
 #define JSONRPC_VERSION_3_26 (G_ENCODE_VERSION (3, 26))
 #define JSONRPC_VERSION_3_28 (G_ENCODE_VERSION (3, 28))
+#define JSONRPC_VERSION_3_30 (G_ENCODE_VERSION (3, 30))
 
 #if (JSONRPC_MINOR_VERSION == 99)
 # define JSONRPC_VERSION_CUR_STABLE (G_ENCODE_VERSION (JSONRPC_MAJOR_VERSION + 1, 0))
@@ -140,4 +141,18 @@
 # define JSONRPC_AVAILABLE_IN_3_28                 _JSONRPC_EXTERN
 #endif
 
+#if JSONRPC_VERSION_MIN_REQUIRED >= JSONRPC_VERSION_3_30
+# define JSONRPC_DEPRECATED_IN_3_30                JSONRPC_DEPRECATED
+# define JSONRPC_DEPRECATED_IN_3_30_FOR(f)         JSONRPC_DEPRECATED_FOR(f)
+#else
+# define JSONRPC_DEPRECATED_IN_3_30                _JSONRPC_EXTERN
+# define JSONRPC_DEPRECATED_IN_3_30_FOR(f)         _JSONRPC_EXTERN
+#endif
+
+#if JSONRPC_VERSION_MAX_ALLOWED < JSONRPC_VERSION_3_30
+# define JSONRPC_AVAILABLE_IN_3_30                 JSONRPC_UNAVAILABLE(3, 30)
+#else
+# define JSONRPC_AVAILABLE_IN_3_30                 _JSONRPC_EXTERN
+#endif
+
 #endif /* JSONRPC_VERSION_MACROS_H */


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