summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-10-20 14:42:26 +0200
committerThomas Haller <thaller@redhat.com>2020-10-20 14:43:03 +0200
commitb39d303f3bf7aac46fa26b7fec0640520b27f271 (patch)
treed8f070f1770d45d203279bd974961c1284109cf1
parent65a253f7146df793eb9fdabc5a6ef54c633efec0 (diff)
downloadNetworkManager-b39d303f3bf7aac46fa26b7fec0640520b27f271.tar.gz
version: add 1.30 macros
-rw-r--r--libnm-core/nm-version.h14
-rw-r--r--shared/nm-version-macros.h.in1
2 files changed, 15 insertions, 0 deletions
diff --git a/libnm-core/nm-version.h b/libnm-core/nm-version.h
index 1fbcf5abbd..cea26926c2 100644
--- a/libnm-core/nm-version.h
+++ b/libnm-core/nm-version.h
@@ -257,6 +257,20 @@
#define NM_AVAILABLE_IN_1_28
#endif
+#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_30
+ #define NM_DEPRECATED_IN_1_30 G_DEPRECATED
+ #define NM_DEPRECATED_IN_1_30_FOR(f) G_DEPRECATED_FOR(f)
+#else
+ #define NM_DEPRECATED_IN_1_30
+ #define NM_DEPRECATED_IN_1_30_FOR(f)
+#endif
+
+#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_30
+ #define NM_AVAILABLE_IN_1_30 G_UNAVAILABLE(1, 30)
+#else
+ #define NM_AVAILABLE_IN_1_30
+#endif
+
/*
* Synchronous API for calling D-Bus in libnm is deprecated. See
* https://developer.gnome.org/libnm/stable/usage.html#sync-api
diff --git a/shared/nm-version-macros.h.in b/shared/nm-version-macros.h.in
index c4d6efbcbe..354827b69f 100644
--- a/shared/nm-version-macros.h.in
+++ b/shared/nm-version-macros.h.in
@@ -66,6 +66,7 @@
#define NM_VERSION_1_24 (NM_ENCODE_VERSION (1, 24, 0))
#define NM_VERSION_1_26 (NM_ENCODE_VERSION (1, 26, 0))
#define NM_VERSION_1_28 (NM_ENCODE_VERSION (1, 28, 0))
+#define NM_VERSION_1_30 (NM_ENCODE_VERSION (1, 30, 0))
/* For releases, NM_API_VERSION is equal to NM_VERSION.
*