about summary refs log tree commit diff
path: root/src/nm-system.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2013-02-03 14:49:22 +0100
committerMichael Biebl <biebl@debian.org>2013-02-03 14:49:22 +0100
commit9c202e3e860b3be9e1f8882630b69affbb130102 (patch)
tree8202bf39f2129486971fa7d5ae0dee61a561aa53 /src/nm-system.h
parent36cb2f364a821e1be50b23e03a18891ec55adb06 (diff)
Imported Upstream version 0.9.7.995 upstream/0.9.7.995
Diffstat (limited to 'src/nm-system.h')
-rw-r--r--src/nm-system.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/nm-system.h b/src/nm-system.h
index 1acb8853..ca07d0f2 100644
--- a/src/nm-system.h
+++ b/src/nm-system.h
@@ -33,10 +33,6 @@
 #include "nm-setting-bond.h"
 #include "nm-setting-vlan.h"
 
-/* Prototypes for system/distribution dependent functions,
- * implemented in the backend files in backends/ directory
- */
-
 gboolean        nm_system_iface_flush_routes         (int ifindex, int family);
 
 gboolean		nm_system_replace_default_ip4_route   (int ifindex,
@@ -98,15 +94,17 @@ gboolean		nm_system_iface_set_mtu                 (int ifindex, guint32 mtu);
 
 gboolean		nm_system_iface_set_mac                 (int ifindex, const struct ether_addr *mac);
 
+gboolean        nm_system_iface_set_arp                 (int ifindex, gboolean arp);
+
 gboolean        nm_system_apply_bonding_config          (const char *iface,
                                                          NMSettingBond *s_bond);
 gboolean        nm_system_add_bonding_master            (const char *iface);
 
-gboolean        nm_system_iface_enslave                 (gint master_ifindex,
+gboolean        nm_system_bond_enslave                  (gint master_ifindex,
                                                          const char *master_iface,
                                                          gint slave_ifindex,
                                                          const char *slave_iface);
-gboolean        nm_system_iface_release                 (gint master_ifindex,
+gboolean        nm_system_bond_release                  (gint master_ifindex,
                                                          const char *master_iface,
                                                          gint slave_ifindex,
                                                          const char *slave_iface);
@@ -115,7 +113,8 @@ enum {
 		NM_IFACE_TYPE_UNSPEC = 0,
 		NM_IFACE_TYPE_BOND,
 		NM_IFACE_TYPE_VLAN,
-		NM_IFACE_TYPE_DUMMY,
+		NM_IFACE_TYPE_BRIDGE,
+		NM_IFACE_TYPE_DUMMY
 };
 
 int             nm_system_get_iface_type      (int ifindex, const char *name);
@@ -129,4 +128,16 @@ gboolean        nm_system_add_vlan_iface (NMConnection *connection,
                                           int parent_ifindex);
 gboolean        nm_system_del_vlan_iface (const char *iface);
 
+gboolean        nm_system_create_bridge (const char *iface);
+gboolean        nm_system_del_bridge (const char *iface);
+
+gboolean        nm_system_bridge_attach (int master_ifindex,
+                                         const char *master_iface,
+                                         int slave_ifindex,
+                                         const char *slave_iface);
+gboolean        nm_system_bridge_detach (int master_ifindex,
+                                         const char *master_iface,
+                                         int slave_ifindex,
+                                         const char *slave_iface);
+
 #endif