blob: 397ff4b7c57d99d159dc15ef70704dca7f60ff27 [file] [log] [blame]
/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef CRAS_A2DP_ENDPOINT_H_
#define CRAS_A2DP_ENDPOINT_H_
#include <dbus/dbus.h>
int cras_a2dp_endpoint_create(DBusConnection *conn);
/* Gets the connected a2dp device, NULL is returned when there's none. */
struct cras_bt_device *cras_a2dp_connected_device();
/* Suspends the connected a2dp device, the purpose is to remove a2dp iodev
* to release a2dp audio before sending dbus message to disconnect a2dp
* device. */
void cras_a2dp_suspend_connected_device();
#endif /* CRAS_A2DP_ENDPOINT_H_ */