diff options
author | fredc <fredc@broadcom.com> | 2012-04-06 02:10:14 -0700 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-14 11:19:15 -0700 |
commit | 7688ec9bffe2be2850672db8d108cbf58edec341 (patch) | |
tree | bffc424f33431ce4bfd9c038b8854892729dc460 /btif/src | |
parent | 9c91f1440d12653bd635271a951c7607273facae (diff) | |
download | external_bluetooth_bluedroid-7688ec9bffe2be2850672db8d108cbf58edec341.zip external_bluetooth_bluedroid-7688ec9bffe2be2850672db8d108cbf58edec341.tar.gz external_bluetooth_bluedroid-7688ec9bffe2be2850672db8d108cbf58edec341.tar.bz2 |
Added API support to start SDP and get device remote services
Change-Id: Ic494dfac9e634eef47d7fc08a471ec41701ba6dc
Diffstat (limited to 'btif/src')
-rwxr-xr-x | btif/src/bluetooth.c | 10 | ||||
-rwxr-xr-x | btif/src/btif_dm.c | 1 |
2 files changed, 10 insertions, 1 deletions
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); |