void (*remove_interface) (struct connman_technology *technology,
int index);
int (*set_tethering) (struct connman_technology *technology,
- connman_bool_t enabled);
+ const char *bridge, connman_bool_t enabled);
};
int connman_technology_driver_register(struct connman_technology_driver *driver);
}
static int tech_set_tethering(struct connman_technology *technology,
- connman_bool_t enabled)
+ const char *bridge, connman_bool_t enabled)
{
return 0;
}
int index, const char *name, const char *ident);
void __connman_technology_remove_interface(enum connman_service_type type,
int index, const char *name, const char *ident);
-int __connman_technology_enable_tethering(void);
-int __connman_technology_disable_tethering(void);
+int __connman_technology_enable_tethering(const char *bridge);
+int __connman_technology_disable_tethering(const char *bridge);
connman_bool_t __connman_technology_get_blocked(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;
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)
if (status == TRUE) {
create_bridge(BRIDGE_NAME);
- __connman_technology_enable_tethering();
+ __connman_technology_enable_tethering(BRIDGE_NAME);
} else {
- __connman_technology_disable_tethering();
+ __connman_technology_disable_tethering(BRIDGE_NAME);
remove_bridge(BRIDGE_NAME);
}