From 3e9d510274d6560e026c76dc3ecf415db0dd7e68 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 14 Nov 2005 12:18:09 +0000 Subject: Add initial fake HID support --- hidd/sdp.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'hidd/sdp.c') 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; +} -- cgit