diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2020-05-19 16:38:36 +0200 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2020-05-19 17:09:07 +0200 |
| commit | ccf6dc06bbee82c3d49f451545c5317337e0777e (patch) | |
| tree | a8fddc8c6e2b3b99bebab1d5bb2a64581eff4bfd /libnm-core/nm-version.h | |
| parent | f109e55ef130ce84054d5ba3acf4b71cd8c7564a (diff) | |
| parent | 7ffed1e6136de75188f10ba8763bcb942f932f8e (diff) | |
Merge remote-tracking branch 'salsa/debian/master' into ubuntu/master
Diffstat (limited to 'libnm-core/nm-version.h')
| -rw-r--r-- | libnm-core/nm-version.h | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/libnm-core/nm-version.h b/libnm-core/nm-version.h index 3fd2f346..195fc196 100644 --- a/libnm-core/nm-version.h +++ b/libnm-core/nm-version.h @@ -215,24 +215,18 @@ # define NM_AVAILABLE_IN_1_22 #endif -#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_22_2 -# define NM_DEPRECATED_IN_1_22_2 G_DEPRECATED -# define NM_DEPRECATED_IN_1_22_2_FOR(f) G_DEPRECATED_FOR(f) +#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_24 +# define NM_DEPRECATED_IN_1_24 G_DEPRECATED +# define NM_DEPRECATED_IN_1_24_FOR(f) G_DEPRECATED_FOR(f) #else -# define NM_DEPRECATED_IN_1_22_2 -# define NM_DEPRECATED_IN_1_22_2_FOR(f) +# define NM_DEPRECATED_IN_1_24 +# define NM_DEPRECATED_IN_1_24_FOR(f) #endif -#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_22_2 -# define NM_AVAILABLE_IN_1_22_2 G_UNAVAILABLE(1,22.2) +#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_24 +# define NM_AVAILABLE_IN_1_24 G_UNAVAILABLE(1,24) #else -# 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 +# define NM_AVAILABLE_IN_1_24 #endif /* @@ -255,10 +249,11 @@ * around g_dbus_connection_call_sync(). You may call it directly * without feeling dirty. * - * We don't want to force users away from this API, for that reason the - * macro does not yet expand to G_DEPRECATED. + * The API is marked as deprecated since 1.22, however the macro only starts + * complaining in 1.24. That's intentional, because in 1.22 the asynchronous + * alternative was not yet available. */ -#define _NM_DEPRECATED_SYNC_METHOD /*NM_DEPRECATED_IN_1_22*/ -#define _NM_DEPRECATED_SYNC_WRITABLE_PROPERTY /*NM_DEPRECATED_IN_1_22*/ +#define _NM_DEPRECATED_SYNC_METHOD NM_DEPRECATED_IN_1_24 +#define _NM_DEPRECATED_SYNC_WRITABLE_PROPERTY /* NM_DEPRECATED_IN_1_22 */ #endif /* NM_VERSION_H */ |