diff options
author | Thomas Haller <thaller@redhat.com> | 2020-03-15 15:24:55 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-03-17 08:41:30 +0100 |
commit | 625cd413fa4d2d1ff5fd340b1310a6d5982f39b8 (patch) | |
tree | 77cdc84d49ceb65a677aba240f6eafa8179773b5 | |
parent | 82af6fcf73ad3565b882c81ca86ad1efc561e187 (diff) | |
download | NetworkManager-th/libnm-dbus-async-calls.tar.gz |
libnm: enable macros for marking sync libnm methods as deprecatedth/libnm-dbus-async-calls
-rw-r--r-- | libnm-core/nm-version.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libnm-core/nm-version.h b/libnm-core/nm-version.h index e8a94db648..195fc19684 100644 --- a/libnm-core/nm-version.h +++ b/libnm-core/nm-version.h @@ -249,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 */ |