From 8d04ae1e84c9aabc2c366241cbf5e71aea1d56c0 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 17 Feb 2020 15:02:05 +0100 Subject: [PATCH] version: add NM_VERSION_1_22_8/NM_AVAILABLE_IN_1_22_8 macros --- libnm-core/nm-version.h | 6 ++++++ shared/nm-version-macros.h.in | 1 + 2 files changed, 7 insertions(+) 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. *