/** * connman_network_set_group: * @network: network structure * @group: group name * * Set group name for automatic clustering */ void connman_network_set_group(struct connman_network *network, const char *group) { switch (network->type) { case CONNMAN_NETWORK_TYPE_UNKNOWN: case CONNMAN_NETWORK_TYPE_VENDOR: return; case CONNMAN_NETWORK_TYPE_ETHERNET: case CONNMAN_NETWORK_TYPE_BLUETOOTH_PAN: case CONNMAN_NETWORK_TYPE_BLUETOOTH_DUN: case CONNMAN_NETWORK_TYPE_CELLULAR: case CONNMAN_NETWORK_TYPE_WIFI: case CONNMAN_NETWORK_TYPE_WIMAX: break; } if (g_strcmp0(network->group, group) == 0) { if (group != NULL) __connman_service_update_from_network(network); return; } if (network->group != NULL) { __connman_service_remove_from_network(network); g_free(network->group); } network->group = g_strdup(group); if (network->group != NULL) network_probe(network); }
void __connman_network_set_device(struct connman_network *network, struct connman_device *device) { if (network->device == device) return; if (network->device != NULL) network_remove(network); network->device = device; if (network->device != NULL) network_probe(network); }
static int nap_probe(struct btd_device *device, GSList *uuids) { return network_probe(device, uuids, BNEP_SVC_NAP); }
static int panu_probe(struct btd_device *device, GSList *uuids) { return network_probe(device, uuids, BNEP_SVC_PANU); }