From 0185e8371fe8581c512311118113140ffcbcdbb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Tue, 27 Aug 2013 16:11:30 +0200 Subject: libnm-util: deprecate 'security' property of '802-11-wireless' setting 'security' property is redundant, because the security restrictions are easily recognized by the presence of '802-11-wireless-security' in a Wi-Fi connection. The setting has to be present anyway, but we also had to set and check whether the value in 'security' matches the security setting. Following the KISS principle, it is best not to use the 'security' property altogether. --- libnm-util/nm-setting-wireless.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libnm-util/nm-setting-wireless.h') diff --git a/libnm-util/nm-setting-wireless.h b/libnm-util/nm-setting-wireless.h index 1b50804c93..dbc1959e2f 100644 --- a/libnm-util/nm-setting-wireless.h +++ b/libnm-util/nm-setting-wireless.h @@ -75,9 +75,11 @@ GQuark nm_setting_wireless_error_quark (void); #define NM_SETTING_WIRELESS_MAC_ADDRESS_BLACKLIST "mac-address-blacklist" #define NM_SETTING_WIRELESS_MTU "mtu" #define NM_SETTING_WIRELESS_SEEN_BSSIDS "seen-bssids" -#define NM_SETTING_WIRELESS_SEC "security" #define NM_SETTING_WIRELESS_HIDDEN "hidden" +/* Deprecated */ +#define NM_SETTING_WIRELESS_SEC "security" + /** * NM_SETTING_WIRELESS_MODE_ADHOC: * @@ -141,7 +143,6 @@ void nm_setting_wireless_remove_mac_blacklist_item (NMSettingWire guint32 idx); guint32 nm_setting_wireless_get_mtu (NMSettingWireless *setting); -const char *nm_setting_wireless_get_security (NMSettingWireless *setting); gboolean nm_setting_wireless_get_hidden (NMSettingWireless *setting); gboolean nm_setting_wireless_add_seen_bssid (NMSettingWireless *setting, @@ -158,6 +159,9 @@ gboolean nm_setting_wireless_ap_security_compatible (NMSettingWireless NM80211ApSecurityFlags ap_rsn, NM80211Mode ap_mode); +/* Deprecated */ +G_DEPRECATED const char *nm_setting_wireless_get_security (NMSettingWireless *setting); + G_END_DECLS #endif /* NM_SETTING_WIRELESS_H */ -- cgit v1.2.1