diff --git a/libnm-core/nm-version.h b/libnm-core/nm-version.h index 8cb0ac505c..3fd2f346f9 100644 --- a/libnm-core/nm-version.h +++ b/libnm-core/nm-version.h @@ -229,6 +229,12 @@ # define NM_AVAILABLE_IN_1_22_2 #endif +#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_22_8 +# define NM_AVAILABLE_IN_1_22_8 G_UNAVAILABLE(1,22.8) +#else +# define NM_AVAILABLE_IN_1_22_8 +#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 a9dcab8dc2..8704ac5708 100644 --- a/shared/nm-version-macros.h.in +++ b/shared/nm-version-macros.h.in @@ -64,6 +64,7 @@ #define NM_VERSION_1_20 (NM_ENCODE_VERSION (1, 20, 0)) #define NM_VERSION_1_22 (NM_ENCODE_VERSION (1, 22, 0)) #define NM_VERSION_1_22_2 (NM_ENCODE_VERSION (1, 22, 2)) +#define NM_VERSION_1_22_8 (NM_ENCODE_VERSION (1, 22, 8)) /* For releases, NM_API_VERSION is equal to NM_VERSION. *