1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 #ifndef CRAS_A2DP_ENDPOINT_H_
7 #define CRAS_A2DP_ENDPOINT_H_
8 
9 #include <dbus/dbus.h>
10 
11 struct cras_iodev;
12 
13 int cras_a2dp_endpoint_create(DBusConnection *conn);
14 
15 /* Gets the connected a2dp device, NULL is returned when there's none. */
16 struct cras_bt_device *cras_a2dp_connected_device();
17 
18 /* Suspends the connected a2dp device, the purpose is to remove a2dp iodev
19  * to release a2dp audio before sending dbus message to disconnect a2dp
20  * device. */
21 void cras_a2dp_suspend_connected_device(struct cras_bt_device *device);
22 
23 /* Starts A2DP output by creating the cras_iodev. */
24 void cras_a2dp_start(struct cras_bt_device *device);
25 
26 #endif /* CRAS_A2DP_ENDPOINT_H_ */
27