summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Bubela <vbubela@redhat.com>2022-08-31 11:32:12 +0200
committerThomas Haller <thaller@redhat.com>2022-08-31 19:23:26 +0200
commit7dccb5f548c5e31c5e4527be73df3481a2829d4a (patch)
tree4d4d8194eea917b9886e897fdd88d1ebf89daac2
parent424f09e43dfb37c117a5a8b85102648969bcddfe (diff)
downloadNetworkManager-7dccb5f548c5e31c5e4527be73df3481a2829d4a.tar.gz
version: add 1.42 macros
-rw-r--r--src/libnm-core-public/nm-version-macros.h.in1
-rw-r--r--src/libnm-core-public/nm-version.h14
2 files changed, 15 insertions, 0 deletions
diff --git a/src/libnm-core-public/nm-version-macros.h.in b/src/libnm-core-public/nm-version-macros.h.in
index 07e7989957..0fc7a90fac 100644
--- a/src/libnm-core-public/nm-version-macros.h.in
+++ b/src/libnm-core-public/nm-version-macros.h.in
@@ -72,6 +72,7 @@
#define NM_VERSION_1_36 (NM_ENCODE_VERSION (1, 36, 0))
#define NM_VERSION_1_38 (NM_ENCODE_VERSION (1, 38, 0))
#define NM_VERSION_1_40 (NM_ENCODE_VERSION (1, 40, 0))
+#define NM_VERSION_1_42 (NM_ENCODE_VERSION (1, 42, 0))
/* For releases, NM_API_VERSION is equal to NM_VERSION.
*
diff --git a/src/libnm-core-public/nm-version.h b/src/libnm-core-public/nm-version.h
index 9f6e3e78ee..0b2e6103a2 100644
--- a/src/libnm-core-public/nm-version.h
+++ b/src/libnm-core-public/nm-version.h
@@ -341,6 +341,20 @@
#define NM_AVAILABLE_IN_1_40
#endif
+#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_42
+#define NM_DEPRECATED_IN_1_42 G_DEPRECATED
+#define NM_DEPRECATED_IN_1_42_FOR(f) G_DEPRECATED_FOR(f)
+#else
+#define NM_DEPRECATED_IN_1_42
+#define NM_DEPRECATED_IN_1_42_FOR(f)
+#endif
+
+#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_42
+#define NM_AVAILABLE_IN_1_42 G_UNAVAILABLE(1, 42)
+#else
+#define NM_AVAILABLE_IN_1_42
+#endif
+
/*
* Synchronous API for calling D-Bus in libnm is deprecated. See
* https://networkmanager.dev/docs/libnm/latest/usage.html#sync-api