summaryrefslogtreecommitdiffstats
path: root/btif/src
diff options
context:
space:
mode:
Diffstat (limited to 'btif/src')
-rwxr-xr-xbtif/src/bluetooth.c10
-rwxr-xr-xbtif/src/btif_dm.c1
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);