From badafc6e227a175022370017008f0d839ec90b25 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 23 Jan 2005 08:10:42 +0000 Subject: Add functions hci_{local|remote}_name() --- include/hci_lib.h | 3 +++ src/hci.c | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/include/hci_lib.h b/include/hci_lib.h index 3c44bd8a..f6259f51 100644 --- a/include/hci_lib.h +++ b/include/hci_lib.h @@ -97,6 +97,9 @@ int hci_read_link_quality(int dd, uint16_t handle, uint8_t *link_quality, int to int hci_read_rssi(int dd, uint16_t handle, int8_t *rssi, int to); int hci_read_afh_map(int dd, uint16_t handle, uint8_t *mode, uint8_t *map, int to); +int hci_local_name(int dd, int len, char *name, int to); +int hci_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to); + int hci_for_each_dev(int flag, int(*func)(int s, int dev_id, long arg), long arg); int hci_get_route(bdaddr_t *bdaddr); diff --git a/src/hci.c b/src/hci.c index 8e0b7938..87f4874b 100644 --- a/src/hci.c +++ b/src/hci.c @@ -1619,3 +1619,13 @@ int hci_read_afh_map(int dd, uint16_t handle, uint8_t *mode, uint8_t *map, int t memcpy(map, rp.map, 10); return 0; } + +int hci_local_name(int dd, int len, char *name, int to) +{ + return hci_read_local_name(dd, len, name, to); +} + +int hci_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to) +{ + return hci_read_remote_name(dd, bdaddr, len, name, to); +} -- cgit