• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_BT_ADAPTER_H_
7 #define CRAS_BT_ADAPTER_H_
8 
9 #include <dbus/dbus.h>
10 
11 struct cras_bt_adapter;
12 
13 struct cras_bt_adapter *cras_bt_adapter_create(const char *object_path);
14 void cras_bt_adapter_destroy(struct cras_bt_adapter *adapter);
15 void cras_bt_adapter_reset();
16 
17 struct cras_bt_adapter *cras_bt_adapter_get(const char *object_path);
18 size_t cras_bt_adapter_get_list(struct cras_bt_adapter ***adapter_list_out);
19 
20 const char *cras_bt_adapter_object_path(const struct cras_bt_adapter *adapter);
21 const char *cras_bt_adapter_address(const struct cras_bt_adapter *adapter);
22 const char *cras_bt_adapter_name(const struct cras_bt_adapter *adapter);
23 
24 int cras_bt_adapter_powered(const struct cras_bt_adapter *adapter);
25 
26 
27 void cras_bt_adapter_update_properties(struct cras_bt_adapter *adapter,
28 				       DBusMessageIter *properties_array_iter,
29 				       DBusMessageIter *invalidated_array_iter);
30 
31 int cras_bt_adapter_on_usb(struct cras_bt_adapter *adapter);
32 
33 #endif /* CRAS_BT_ADAPTER_H_ */
34