diff --git a/libnm/nm-device.c b/libnm/nm-device.c index 96698967b9..8344f2a037 100644 --- a/libnm/nm-device.c +++ b/libnm/nm-device.c @@ -1066,6 +1066,10 @@ nm_device_get_managed (NMDevice *device) * Since: 1.2 * * Deprecated: 1.22, use nm_device_set_managed_async() or GDBusConnection + * + * This function is deprecated because it calls a synchronous D-Bus method + * and modifies the content of the NMClient cache client side. Also, it does + * not emit a property changed signal. **/ void nm_device_set_managed (NMDevice *device, gboolean managed) @@ -1108,6 +1112,9 @@ nm_device_get_autoconnect (NMDevice *device) * Enables or disables automatic activation of the #NMDevice. * * Deprecated: 1.22, use nm_device_set_autoconnect_async() or GDBusConnection + * + * This function is deprecated because it calls a synchronous D-Bus method + * and modifies the content of the NMClient cache client side. **/ void nm_device_set_autoconnect (NMDevice *device, gboolean autoconnect) diff --git a/libnm/nm-device.h b/libnm/nm-device.h index ede606d8e9..bc8aad63df 100644 --- a/libnm/nm-device.h +++ b/libnm/nm-device.h @@ -77,11 +77,13 @@ NMDeviceCapabilities nm_device_get_capabilities (NMDevice *device); gboolean nm_device_get_managed (NMDevice *device); NM_AVAILABLE_IN_1_2 +NM_DEPRECATED_IN_1_22 _NM_DEPRECATED_SYNC_METHOD void nm_device_set_managed (NMDevice *device, gboolean managed); gboolean nm_device_get_autoconnect (NMDevice *device); +NM_DEPRECATED_IN_1_22 _NM_DEPRECATED_SYNC_METHOD void nm_device_set_autoconnect (NMDevice *device, gboolean autoconnect);