diff options
author | Stephen Crane <steve.crane@rococosoft.com> | 2003-02-11 10:22:23 +0000 |
---|---|---|
committer | Stephen Crane <steve.crane@rococosoft.com> | 2003-02-11 10:22:23 +0000 |
commit | 109bfa547ab9e24672472371e2183dcec24d0058 (patch) | |
tree | 55dcd30597464569faff8ffc70874260b1f80676 /include/bluetooth.h | |
parent | bff9ecffc1771df893e0cccc59fe708cf9ba43bb (diff) |
add const to fn sigs; fns to auth and enc links
Diffstat (limited to 'include/bluetooth.h')
-rw-r--r-- | include/bluetooth.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/bluetooth.h b/include/bluetooth.h index b93c4e35..93a6f628 100644 --- a/include/bluetooth.h +++ b/include/bluetooth.h @@ -91,20 +91,20 @@ typedef struct { #define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}}) /* Copy, swap, convert BD Address */ -static inline int bacmp(bdaddr_t *ba1, bdaddr_t *ba2) +static inline int bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2) { return memcmp(ba1, ba2, sizeof(bdaddr_t)); } -static inline void bacpy(bdaddr_t *dst, bdaddr_t *src) +static inline void bacpy(bdaddr_t *dst, const bdaddr_t *src) { memcpy(dst, src, sizeof(bdaddr_t)); } -void baswap(bdaddr_t *dst, bdaddr_t *src); -bdaddr_t *strtoba(char *str); -char *batostr(bdaddr_t *ba); -int ba2str(bdaddr_t *ba, char *str); -int str2ba(char *str, bdaddr_t *ba); +void baswap(bdaddr_t *dst, const bdaddr_t *src); +bdaddr_t *strtoba(const char *str); +char *batostr(const bdaddr_t *ba); +int ba2str(const bdaddr_t *ba, char *str); +int str2ba(const char *str, bdaddr_t *ba); int bt_error(uint16_t code); char *bt_compidtostr(int id); |