From 7688ec9bffe2be2850672db8d108cbf58edec341 Mon Sep 17 00:00:00 2001 From: fredc Date: Fri, 6 Apr 2012 02:10:14 -0700 Subject: Added API support to start SDP and get device remote services Change-Id: Ic494dfac9e634eef47d7fc08a471ec41701ba6dc --- btif/src/bluetooth.c | 10 ++++++++++ btif/src/btif_dm.c | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'btif/src') diff --git a/btif/src/bluetooth.c b/btif/src/bluetooth.c index 5fccd80..5864eac 100755 --- a/btif/src/bluetooth.c +++ b/btif/src/bluetooth.c @@ -241,6 +241,15 @@ int get_remote_service_record(bt_bdaddr_t *remote_addr, bt_uuid_t *uuid) return btif_get_remote_service_record(remote_addr, uuid); } +int get_remote_services(bt_bdaddr_t *remote_addr) +{ + /* sanity check */ + if (interface_ready() == FALSE) + return BT_STATUS_NOT_READY; + + return btif_dm_get_remote_services(remote_addr); +} + static int start_discovery(void) { /* sanity check */ @@ -344,6 +353,7 @@ static const bt_interface_t bluetoothInterface = { get_remote_device_property, set_remote_device_property, get_remote_service_record, + get_remote_services, start_discovery, cancel_discovery, create_bond, diff --git a/btif/src/btif_dm.c b/btif/src/btif_dm.c index 17d2488..c215722 100755 --- a/btif/src/btif_dm.c +++ b/btif/src/btif_dm.c @@ -95,7 +95,6 @@ typedef struct { ** Static functions ******************************************************************************/ static btif_dm_pairing_cb_t pairing_cb; -static bt_status_t btif_dm_get_remote_services(bt_bdaddr_t *remote_addr); static void btif_dm_generic_evt(UINT16 event, char* p_param); static void btif_dm_cb_create_bond(bt_bdaddr_t *bd_addr); static void btif_dm_cb_hid_remote_name(tBTM_REMOTE_DEV_NAME *p_remote_name); -- cgit v1.1