diff --git a/libnm-core/nm-version-macros.h.in b/libnm-core/nm-version-macros.h.in index 4a6f46e9f0..08486efc4e 100644 --- a/libnm-core/nm-version-macros.h.in +++ b/libnm-core/nm-version-macros.h.in @@ -67,6 +67,7 @@ #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)) +#define NM_VERSION_1_30_8 (NM_ENCODE_VERSION (1, 30, 8)) /* For releases, NM_API_VERSION is equal to NM_VERSION. * diff --git a/libnm-core/nm-version.h b/libnm-core/nm-version.h index 3f1ad3f2eb..7aa2b6fd1c 100644 --- a/libnm-core/nm-version.h +++ b/libnm-core/nm-version.h @@ -271,6 +271,12 @@ #define NM_AVAILABLE_IN_1_30 #endif +#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_30_8 + #define NM_AVAILABLE_IN_1_30_8 G_UNAVAILABLE(1, 30.8) +#else + #define NM_AVAILABLE_IN_1_30_8 +#endif + /* * Synchronous API for calling D-Bus in libnm is deprecated. See * https://developer.gnome.org/libnm/stable/usage.html#sync-api