summaryrefslogtreecommitdiff
path: root/libnm-util/nm-connection.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-connection.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-connection.h')
-rw-r--r--libnm-util/nm-connection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm-util/nm-connection.h b/libnm-util/nm-connection.h
index abe74d2888..28dce127fc 100644
--- a/libnm-util/nm-connection.h
+++ b/libnm-util/nm-connection.h
@@ -164,6 +164,8 @@ void nm_connection_set_path (NMConnection *connection,
const char * nm_connection_get_path (NMConnection *connection);
+const char * nm_connection_get_virtual_iface_name (NMConnection *connection);
+
gboolean nm_connection_is_type (NMConnection *connection, const char *type);
void nm_connection_for_each_setting_value (NMConnection *connection,