summaryrefslogtreecommitdiffstats
path: root/hcid/hcid.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-04-10 14:06:44 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-04-10 14:06:44 +0000
commitc853057d20c7539d5214d0a126055baacb60887f (patch)
treea94452b4aff3c2cc6ed686e4b7872b1057b61ae2 /hcid/hcid.h
parent2a209d402e7cc324d03fb7172ac892626068d00b (diff)
Implement global trust setting
Diffstat (limited to 'hcid/hcid.h')
-rw-r--r--hcid/hcid.h7
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);