diff --git a/src/libnm-core-public/nm-version-macros.h.in b/src/libnm-core-public/nm-version-macros.h.in index 07e7989957..0fc7a90fac 100644 --- a/src/libnm-core-public/nm-version-macros.h.in +++ b/src/libnm-core-public/nm-version-macros.h.in @@ -72,6 +72,7 @@ #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)) +#define NM_VERSION_1_42 (NM_ENCODE_VERSION (1, 42, 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 9f6e3e78ee..0b2e6103a2 100644 --- a/src/libnm-core-public/nm-version.h +++ b/src/libnm-core-public/nm-version.h @@ -341,6 +341,20 @@ #define NM_AVAILABLE_IN_1_40 #endif +#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_42 +#define NM_DEPRECATED_IN_1_42 G_DEPRECATED +#define NM_DEPRECATED_IN_1_42_FOR(f) G_DEPRECATED_FOR(f) +#else +#define NM_DEPRECATED_IN_1_42 +#define NM_DEPRECATED_IN_1_42_FOR(f) +#endif + +#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_42 +#define NM_AVAILABLE_IN_1_42 G_UNAVAILABLE(1, 42) +#else +#define NM_AVAILABLE_IN_1_42 +#endif + /* * Synchronous API for calling D-Bus in libnm is deprecated. See * https://networkmanager.dev/docs/libnm/latest/usage.html#sync-api