summaryrefslogtreecommitdiff
path: root/libnm-core/nm-setting-bond.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-08-04 19:57:20 -0400
committerDan Winship <danw@gnome.org>2014-09-04 09:18:44 -0400
commit6217c1e74c093b95b16880a30286c8e60a6fb746 (patch)
tree90374b3a26efc0261685bc5b9f44b2e9e5196c6c /libnm-core/nm-setting-bond.h
parent40bb402898903d90b76f5f01f783717b838ba090 (diff)
downloadNetworkManager-6217c1e74c093b95b16880a30286c8e60a6fb746.tar.gz
libnm-core: drop :interface-name properties on virtual NMSetting types
Remove the virtual :interface-name properties and their getters, and use property overrides to do backward-compat handling when serializing/deserializing. Now when constructing an NMConnection from a hash, if the virtual property is set and the NMSettingConnection property isn't, then the override for NMSettingConnection:interface-name will set that property to the value of the virtual interface-name. And when converting an NMConnection to a hash, the overrides for the virtual properties will return the value of NMSettingConnection:interface-name.
Diffstat (limited to 'libnm-core/nm-setting-bond.h')
-rw-r--r--libnm-core/nm-setting-bond.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/libnm-core/nm-setting-bond.h b/libnm-core/nm-setting-bond.h
index 1179aa2085..c3cee4d550 100644
--- a/libnm-core/nm-setting-bond.h
+++ b/libnm-core/nm-setting-bond.h
@@ -57,7 +57,6 @@ typedef enum {
#define NM_SETTING_BOND_ERROR nm_setting_bond_error_quark ()
GQuark nm_setting_bond_error_quark (void);
-#define NM_SETTING_BOND_INTERFACE_NAME "interface-name"
#define NM_SETTING_BOND_OPTIONS "options"
/* Valid options for the 'options' property */
@@ -90,7 +89,6 @@ typedef struct {
GType nm_setting_bond_get_type (void);
NMSetting * nm_setting_bond_new (void);
-const char * nm_setting_bond_get_interface_name (NMSettingBond *setting);
guint32 nm_setting_bond_get_num_options (NMSettingBond *setting);
gboolean nm_setting_bond_get_option (NMSettingBond *setting,
guint32 idx,