diff options
author | Adrian Freihofer <adrian.freihofer@siemens.com> | 2022-04-27 20:57:45 +0200 |
---|---|---|
committer | Adrian Freihofer <adrian.freihofer@siemens.com> | 2022-05-01 14:12:20 +0200 |
commit | 04ce34d8dc98658279150c0137a96591a36764b4 (patch) | |
tree | 6b7b5b73364b48a631523df27b1db2ebe76dcbfc | |
parent | e766ca4e7cd6a6f82108f18214111cf77faf5f17 (diff) | |
download | NetworkManager-04ce34d8dc98658279150c0137a96591a36764b4.tar.gz |
version: add 1.40 macros
-rw-r--r-- | src/libnm-core-public/nm-version-macros.h.in | 1 | ||||
-rw-r--r-- | src/libnm-core-public/nm-version.h | 14 |
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 516aded5e1..07e7989957 100644 --- a/src/libnm-core-public/nm-version-macros.h.in +++ b/src/libnm-core-public/nm-version-macros.h.in @@ -71,6 +71,7 @@ #define NM_VERSION_1_34 (NM_ENCODE_VERSION (1, 34, 0)) #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)) /* 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 ac98f86819..22a79382e0 100644 --- a/src/libnm-core-public/nm-version.h +++ b/src/libnm-core-public/nm-version.h @@ -327,6 +327,20 @@ #define NM_AVAILABLE_IN_1_38 #endif +#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_40 +#define NM_DEPRECATED_IN_1_40 G_DEPRECATED +#define NM_DEPRECATED_IN_1_40_FOR(f) G_DEPRECATED_FOR(f) +#else +#define NM_DEPRECATED_IN_1_40 +#define NM_DEPRECATED_IN_1_40_FOR(f) +#endif + +#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_40 +#define NM_AVAILABLE_IN_1_40 G_UNAVAILABLE(1, 40) +#else +#define NM_AVAILABLE_IN_1_40 +#endif + /* * Synchronous API for calling D-Bus in libnm is deprecated. See * https://developer.gnome.org/libnm/stable/usage.html#sync-api |