summaryrefslogtreecommitdiffstats
path: root/hidd/sdp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-11-14 12:18:09 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-11-14 12:18:09 +0000
commit3e9d510274d6560e026c76dc3ecf415db0dd7e68 (patch)
tree79556a17a276df18b7b7e4909fdcb3ea9d556c88 /hidd/sdp.c
parent9c4ddbfafab6fe96480edeb8c5fee1b76e103300 (diff)
Add initial fake HID support
Diffstat (limited to 'hidd/sdp.c')
-rw-r--r--hidd/sdp.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/hidd/sdp.c b/hidd/sdp.c
index 6ed5d2dc..285438e8 100644
--- a/hidd/sdp.c
+++ b/hidd/sdp.c
@@ -267,3 +267,22 @@ int get_sdp_device_info(const bdaddr_t *src, const bdaddr_t *dst, struct hidp_co
return 0;
}
+
+int get_alternate_device_info(const bdaddr_t *src, const bdaddr_t *dst, uint16_t *uuid, uint8_t *channel)
+{
+ sdp_session_t *s;
+
+ s = sdp_connect(src, dst, SDP_RETRY_IF_BUSY | SDP_WAIT_ON_CLOSE);
+ if (!s)
+ return -1;
+
+ sdp_close(s);
+
+ if (uuid)
+ *uuid = 0x0000;
+
+ if (channel)
+ *channel = 0;
+
+ return 0;
+}