summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.
*