diff options
author | Thomas Haller <thaller@redhat.com> | 2022-02-18 16:06:04 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-02-18 16:06:04 +0100 |
commit | 91f84249d5becf28629601f2369e7cd97fab5500 (patch) | |
tree | a7a1f44da52e7dec7736aa28dc54f8a0c759052e | |
parent | 037dfe5ac14891d260798726965281c93256c25d (diff) | |
download | NetworkManager-91f84249d5becf28629601f2369e7cd97fab5500.tar.gz |
version: add 1.38 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 76dd424029..516aded5e1 100644 --- a/src/libnm-core-public/nm-version-macros.h.in +++ b/src/libnm-core-public/nm-version-macros.h.in @@ -70,6 +70,7 @@ #define NM_VERSION_1_32 (NM_ENCODE_VERSION (1, 32, 0)) #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)) /* 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 d6f58924a7..ac98f86819 100644 --- a/src/libnm-core-public/nm-version.h +++ b/src/libnm-core-public/nm-version.h @@ -313,6 +313,20 @@ #define NM_AVAILABLE_IN_1_36 #endif +#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_38 +#define NM_DEPRECATED_IN_1_38 G_DEPRECATED +#define NM_DEPRECATED_IN_1_38_FOR(f) G_DEPRECATED_FOR(f) +#else +#define NM_DEPRECATED_IN_1_38 +#define NM_DEPRECATED_IN_1_38_FOR(f) +#endif + +#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_38 +#define NM_AVAILABLE_IN_1_38 G_UNAVAILABLE(1, 38) +#else +#define NM_AVAILABLE_IN_1_38 +#endif + /* * Synchronous API for calling D-Bus in libnm is deprecated. See * https://developer.gnome.org/libnm/stable/usage.html#sync-api |