summaryrefslogtreecommitdiff
path: root/libnm-util/nm-setting.h
diff options
context:
space:
mode:
authorThomas Graf <tgraf@redhat.com>2011-12-07 13:15:18 +0100
committerDan Williams <dcbw@redhat.com>2011-12-08 09:56:47 -0600
commit1cd8d520611915136f5e3e95f64e823f7cbf3b49 (patch)
tree705150ba598700cfc02cc12e104ca969da54089c /libnm-util/nm-setting.h
parentb366ebe32157bc4f9b183e49534d3531f72872a0 (diff)
downloadNetworkManager-1cd8d520611915136f5e3e95f64e823f7cbf3b49.tar.gz
bonding: add nm_connection_get_virtual_iface_name() to abstract kernel interface binding
Some connection types such as bonding, bridging and VLAN require specific virtual kernel interfaces identified by name to be auto connected to the connection. The function nm_connection_get_virtual_iface_name() returns the name of the kernel interface if the connection type requires this functionatlity. Each connection base type settings class can implement the function get_virtual_iface_name() if the connection needs to be auto connected to a specific kernel interface. Signed-off-by: Thomas Graf <tgraf@redhat.com>
Diffstat (limited to 'libnm-util/nm-setting.h')
-rw-r--r--libnm-util/nm-setting.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libnm-util/nm-setting.h b/libnm-util/nm-setting.h
index 3edf2a1f31..843b7918a3 100644
--- a/libnm-util/nm-setting.h
+++ b/libnm-util/nm-setting.h
@@ -203,9 +203,10 @@ typedef struct {
NMSettingClearSecretsWithFlagsFn func,
gpointer user_data);
+ const char *(*get_virtual_iface_name) (NMSetting *setting);
+
/* Padding for future expansion */
void (*_reserved1) (void);
- void (*_reserved2) (void);
} NMSettingClass;
/**
@@ -308,6 +309,8 @@ gboolean nm_setting_set_secret_flags (NMSetting *setting,
NMSettingSecretFlags flags,
GError **error);
+const char *nm_setting_get_virtual_iface_name (NMSetting *setting);
+
G_END_DECLS
#endif /* NM_SETTING_H */