diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-01-13 20:05:05 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-01-13 20:05:05 +0000 |
commit | 6c2fed4529b256285e495ccdb066de331db42ff4 (patch) | |
tree | c9c7fe6b9f5a2bf86ceaf221cc5aa5dbb75aa6af /src | |
parent | be59bde48abafbc4ec4f4053c1cf25a80e2fc64e (diff) |
Remove deprecated functions
Diffstat (limited to 'src')
-rw-r--r-- | src/hci.c | 37 |
1 files changed, 15 insertions, 22 deletions
@@ -55,7 +55,8 @@ #include <bluetooth/hci_lib.h> typedef struct { - char *str; unsigned int val; + char *str; + unsigned int val; } hci_map; static char *hci_bit2str(hci_map *m, unsigned int val) @@ -255,11 +256,11 @@ int hci_strtoscoptype(char *str, unsigned int *val) /* Link policy mapping */ static hci_map link_policy_map[] = { - { "NONE", 0 }, - { "RSWITCH", HCI_LP_RSWITCH }, - { "HOLD", HCI_LP_HOLD }, - { "SNIFF", HCI_LP_SNIFF }, - { "PARK", HCI_LP_PARK }, + { "NONE", 0 }, + { "RSWITCH", HCI_LP_RSWITCH }, + { "HOLD", HCI_LP_HOLD }, + { "SNIFF", HCI_LP_SNIFF }, + { "PARK", HCI_LP_PARK }, { NULL } }; @@ -275,12 +276,14 @@ int hci_strtolp(char *str, unsigned int *val) /* Link mode mapping */ static hci_map link_mode_map[] = { - { "NONE", 0 }, - { "ACCEPT", HCI_LM_ACCEPT }, - { "MASTER", HCI_LM_MASTER }, - { "AUTH", HCI_LM_AUTH }, - { "ENCRYPT", HCI_LM_ENCRYPT}, - { "TRUSTED", HCI_LM_TRUSTED}, + { "NONE", 0 }, + { "ACCEPT", HCI_LM_ACCEPT }, + { "MASTER", HCI_LM_MASTER }, + { "AUTH", HCI_LM_AUTH }, + { "ENCRYPT", HCI_LM_ENCRYPT }, + { "TRUSTED", HCI_LM_TRUSTED }, + { "RELIABLE", HCI_LM_RELIABLE }, + { "SECURE", HCI_LM_SECURE }, { NULL } }; @@ -847,11 +850,6 @@ int hci_disconnect(int dd, uint16_t handle, uint8_t reason, int to) 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_read_local_name(int dd, int len, char *name, int to) { read_local_name_rp rp; @@ -893,11 +891,6 @@ int hci_write_local_name(int dd, const char *name, int to) return 0; } -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); -} - int hci_read_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to) { evt_remote_name_req_complete rn; |