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 | |
parent | be59bde48abafbc4ec4f4053c1cf25a80e2fc64e (diff) |
Remove deprecated functions
-rw-r--r-- | include/hci_lib.h | 14 | ||||
-rw-r--r-- | src/hci.c | 37 |
2 files changed, 21 insertions, 30 deletions
diff --git a/include/hci_lib.h b/include/hci_lib.h index b8dbd432..5c83b5e8 100644 --- a/include/hci_lib.h +++ b/include/hci_lib.h @@ -67,10 +67,8 @@ int hci_devba(int dev_id, bdaddr_t *bdaddr); int hci_devid(const char *str); /* deprecated: preserve compatibility */ -int hci_local_name(int dd, int len, char *name, int to); int hci_read_local_name(int dd, int len, char *name, int to); int hci_write_local_name(int dd, const char *name, int to); -int hci_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to); int hci_read_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to); int hci_read_remote_features(int dd, uint16_t handle, uint8_t *features, int to); int hci_read_remote_version(int dd, uint16_t handle, struct hci_version *ver, int to); @@ -102,18 +100,18 @@ int hci_get_route(bdaddr_t *bdaddr); char *hci_dtypetostr(int type); char *hci_dflagstostr(uint32_t flags); char *hci_ptypetostr(unsigned int ptype); -int hci_strtoptype(char *str, unsigned int *val); +int hci_strtoptype(char *str, unsigned int *val); char *hci_scoptypetostr(unsigned int ptype); -int hci_strtoscoptype(char *str, unsigned int *val); +int hci_strtoscoptype(char *str, unsigned int *val); char *hci_lptostr(unsigned int ptype); -int hci_strtolp(char *str, unsigned int *val); +int hci_strtolp(char *str, unsigned int *val); char *hci_lmtostr(unsigned int ptype); -int hci_strtolm(char *str, unsigned int *val); +int hci_strtolm(char *str, unsigned int *val); char *hci_vertostr(unsigned int ver); -int hci_strtover(char *str, unsigned int *ver); +int hci_strtover(char *str, unsigned int *ver); char *lmp_vertostr(unsigned int ver); -int lmp_strtover(char *str, unsigned int *ver); +int lmp_strtover(char *str, unsigned int *ver); char *lmp_featurestostr(uint8_t *features, char *pref, int width); @@ -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; |