return sink_disconnect(service, FALSE);
}
-static int avrcp_target_connect(struct btd_service *service)
+static int avrcp_control_connect(struct btd_service *service)
{
struct btd_device *dev = btd_service_get_device(service);
const char *path = device_get_path(dev);
return control_connect(service);
}
-static int avrcp_target_disconnect(struct btd_service *service)
+static int avrcp_control_disconnect(struct btd_service *service)
{
struct btd_device *dev = btd_service_get_device(service);
const char *path = device_get_path(dev);
.device_probe = avrcp_target_probe,
.device_remove = avrcp_target_remove,
- .connect = avrcp_target_connect,
- .disconnect = avrcp_target_disconnect,
+ .connect = avrcp_control_connect,
+ .disconnect = avrcp_control_disconnect,
.adapter_probe = avrcp_target_server_probe,
.adapter_remove = avrcp_target_server_remove,
.device_probe = avrcp_remote_probe,
.device_remove = avrcp_remote_remove,
+ .connect = avrcp_control_connect,
+ .disconnect = avrcp_control_disconnect,
+
.adapter_probe = avrcp_remote_server_probe,
.adapter_remove = avrcp_remote_server_remove,
};