_bt_rfcomm_server_free_all();
#endif
- _bluetooth_hid_free_hid_info();
+ _bt_hid_free_hid_info();
BT_DBG("-");
return FALSE;
address);
int ctrl = -1, intr = -1;
_bt_hid_device_get_fd(address, &ctrl, &intr);
- if (ctrl != -1 && intr != -1) {
- new_hid_connection(NULL, ctrl, &dev_address);
- new_hid_connection(NULL, intr, &dev_address);
- }
+ if (ctrl != -1 && intr != -1)
+ _bt_hid_new_connection(&dev_address, ctrl, intr);
+ else
+ BT_ERR("fd is invalid.(ctrl=%d, intr=%d)", ctrl, intr);
} else if (strcasecmp(signal_name, BT_INPUT_HID_DEVICE_DISCONNECTED) == 0) {
const char *address = NULL;
g_variant_get(parameters, "(i&s)", &result, &address);