summaryrefslogtreecommitdiff
path: root/src/technology.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-11-08 16:25:15 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2010-11-08 16:25:15 +0100
commiteb93dcfa05a8ddcaea9d80b990f3055c1f4e0edf (patch)
tree5333538136bc95bd18e581499af0333aa8eecd63 /src/technology.c
parent7d7c427738f293ea0cbca628087193cc5c83cd41 (diff)
downloadconnman-eb93dcfa05a8ddcaea9d80b990f3055c1f4e0edf.tar.gz
connman-eb93dcfa05a8ddcaea9d80b990f3055c1f4e0edf.tar.bz2
connman-eb93dcfa05a8ddcaea9d80b990f3055c1f4e0edf.zip
technology: Add bridge name to the tethering hook
Diffstat (limited to 'src/technology.c')
-rw-r--r--src/technology.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/technology.c b/src/technology.c
index 1626f83d..37d3974f 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -177,7 +177,7 @@ void __connman_technology_remove_interface(enum connman_service_type type,
}
}
-static int set_tethering(connman_bool_t enabled)
+static int set_tethering(const char *bridge, connman_bool_t enabled)
{
GSList *list;
@@ -188,20 +188,20 @@ static int set_tethering(connman_bool_t enabled)
continue;
if (technology->driver->set_tethering)
- technology->driver->set_tethering(technology, enabled);
+ technology->driver->set_tethering(technology, bridge, enabled);
}
return 0;
}
-int __connman_technology_enable_tethering(void)
+int __connman_technology_enable_tethering(const char *bridge)
{
- return set_tethering(TRUE);
+ return set_tethering(bridge, TRUE);
}
-int __connman_technology_disable_tethering(void)
+int __connman_technology_disable_tethering(const char *bridge)
{
- return set_tethering(FALSE);
+ return set_tethering(bridge, FALSE);
}
static void free_rfkill(gpointer data)