diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-01-23 08:10:42 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-01-23 08:10:42 +0000 |
commit | badafc6e227a175022370017008f0d839ec90b25 (patch) | |
tree | e972f80e711021a0623657a6996e40e115401f11 | |
parent | ef5f2b1b3adbc8509dc47a4c53f31e6e9f867d0b (diff) |
Add functions hci_{local|remote}_name()
-rw-r--r-- | include/hci_lib.h | 3 | ||||
-rw-r--r-- | src/hci.c | 10 |
2 files changed, 13 insertions, 0 deletions
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); @@ -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); +} |