uuid_t browse_uuid;
gboolean new_uuid;
+ DBG("%s", adapter->path);
+
/* skip record without a browse group */
if (sdp_get_browse_groups(rec, &browse_list) < 0)
return;
{
sdp_record_t *rec = r;
+ DBG("%s", adapter->path);
+
adapter->services = sdp_list_remove(adapter->services, rec);
if (sdp_list_find(adapter->services, &rec->svclass, uuid_cmp) == NULL)
{
struct controller_info *info;
+ DBG("Adding controller %u", index);
+
if (index > max_index) {
size_t size = sizeof(struct controller_info) * (index + 1);
max_index = index;
{
struct mgmt_hdr hdr;
+ DBG("index %u", index);
+
memset(&hdr, 0, sizeof(hdr));
hdr.opcode = htobs(MGMT_OP_READ_INFO);
hdr.index = htobs(index);
{
struct mgmt_hdr hdr;
+ DBG("index %u", index);
+
memset(&hdr, 0, sizeof(hdr));
hdr.opcode = htobs(MGMT_OP_GET_CONNECTIONS);
hdr.index = htobs(index);
static void mgmt_index_added(uint16_t index)
{
+ DBG("index %u", index);
+
add_controller(index);
read_info(index);
}
if (!controllers[index].valid)
return;
+ DBG("Removing controller %u", index);
+
btd_manager_unregister_adapter(index);
g_slist_free_full(controllers[index].pending_uuids, g_free);
static void mgmt_index_removed(uint16_t index)
{
+ DBG("index %u", index);
+
remove_controller(index);
}