diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-04-10 14:06:44 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-04-10 14:06:44 +0000 |
commit | c853057d20c7539d5214d0a126055baacb60887f (patch) | |
tree | a94452b4aff3c2cc6ed686e4b7872b1057b61ae2 /hcid/hcid.h | |
parent | 2a209d402e7cc324d03fb7172ac892626068d00b (diff) |
Implement global trust setting
Diffstat (limited to 'hcid/hcid.h')
-rw-r--r-- | hcid/hcid.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hcid/hcid.h b/hcid/hcid.h index 41a22983..8983a899 100644 --- a/hcid/hcid.h +++ b/hcid/hcid.h @@ -37,6 +37,9 @@ #define HCID_DEFAULT_DISCOVERABLE_TIMEOUT 180 /* 3 minutes */ +/* When all services should trust a remote device */ +#define GLOBAL_TRUST "[all]" + /* * Scanning modes, used by DEV_SET_MODE * off: remote devices are not allowed to find or connect to this device @@ -191,5 +194,5 @@ int write_link_key(bdaddr_t *local, bdaddr_t *peer, unsigned char *key, int type int read_link_key(bdaddr_t *local, bdaddr_t *peer, unsigned char *key); int read_pin_length(bdaddr_t *local, bdaddr_t *peer); int read_pin_code(bdaddr_t *local, bdaddr_t *peer, char *pin); -gboolean read_trust(const char *addr, const char *service); -int write_trust(const char *addr, const char *service, gboolean trust); +gboolean read_trust(bdaddr_t *local, const char *addr, const char *service); +int write_trust(bdaddr_t *local, const char *addr, const char *service, gboolean trust); |