• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *
3  *  BlueZ - Bluetooth protocol stack for Linux
4  *
5  *  Copyright (C) 2006-2010  Nokia Corporation
6  *  Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>
7  *
8  *
9  *  This program is free software; you can redistribute it and/or modify
10  *  it under the terms of the GNU General Public License as published by
11  *  the Free Software Foundation; either version 2 of the License, or
12  *  (at your option) any later version.
13  *
14  *  This program is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *  GNU General Public License for more details.
18  *
19  *  You should have received a copy of the GNU General Public License
20  *  along with this program; if not, write to the Free Software
21  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22  *
23  */
24 
25 int hcid_dbus_request_pin(int dev, bdaddr_t *sba, struct hci_conn_info *ci);
26 void hcid_dbus_inquiry_result(bdaddr_t *local, bdaddr_t *peer, uint32_t class, int8_t rssi, uint8_t *data);
27 void hcid_dbus_set_legacy_pairing(bdaddr_t *local, bdaddr_t *peer, gboolean legacy);
28 void hcid_dbus_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t class);
29 void hcid_dbus_remote_name(bdaddr_t *local, bdaddr_t *peer, uint8_t status, char *name);
30 void hcid_dbus_conn_complete(bdaddr_t *local, uint8_t status, uint16_t handle, bdaddr_t *peer);
31 void hcid_dbus_disconn_complete(bdaddr_t *local, uint8_t status, uint16_t handle, uint8_t reason);
32 void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer, uint8_t status);
33 void hcid_dbus_simple_pairing_complete(bdaddr_t *local, bdaddr_t *peer, uint8_t status);
34 void hcid_dbus_setscan_enable_complete(bdaddr_t *local);
35 void hcid_dbus_write_simple_pairing_mode_complete(bdaddr_t *local);
36 void hcid_dbus_returned_link_key(bdaddr_t *local, bdaddr_t *peer);
37 int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote);
38 int hcid_dbus_set_io_cap(bdaddr_t *local, bdaddr_t *remote,
39 						uint8_t cap, uint8_t auth);
40 int hcid_dbus_user_confirm(bdaddr_t *sba, bdaddr_t *dba, uint32_t passkey);
41 int hcid_dbus_user_passkey(bdaddr_t *sba, bdaddr_t *dba);
42 int hcid_dbus_user_notify(bdaddr_t *sba, bdaddr_t *dba, uint32_t passkey);
43 int hcid_dbus_link_key_notify(bdaddr_t *local, bdaddr_t *peer,
44 				uint8_t *key, uint8_t key_type,
45 				int pin_length, uint8_t old_key_type);
46 int hcid_dbus_get_oob_data(bdaddr_t *sba, bdaddr_t *dba);
47 
48 gboolean get_adapter_and_device(bdaddr_t *src, bdaddr_t *dst,
49 					struct btd_adapter **adapter,
50 					struct btd_device **device,
51 					gboolean create);
52 
53 const char *class_to_icon(uint32_t class);
54 
55 void set_dbus_connection(DBusConnection *conn);
56 
57 DBusConnection *get_dbus_connection(void);
58