summaryrefslogtreecommitdiffstats
path: root/btif/src/btif_util.c
diff options
context:
space:
mode:
authorzzy <zhenye@broadcom.com>2012-08-15 18:03:15 -0700
committerMatthew Xie <mattx@google.com>2012-08-27 20:39:30 -0700
commit54cdfabe7c0ed98732d0641ffe8b19ff7284e7d4 (patch)
treee629044f6e72ed09807643e56b2a29a26993e1c7 /btif/src/btif_util.c
parentbe7063ce21ac1e2f67d489c29a1e979dc3d8f075 (diff)
downloadexternal_bluetooth_bluedroid-54cdfabe7c0ed98732d0641ffe8b19ff7284e7d4.zip
external_bluetooth_bluedroid-54cdfabe7c0ed98732d0641ffe8b19ff7284e7d4.tar.gz
external_bluetooth_bluedroid-54cdfabe7c0ed98732d0641ffe8b19ff7284e7d4.tar.bz2
Added new storage code and bluez configuration migration support
Filter out hid device from bluez migration. Change-Id: I8b5eb29f37ca37e97b728f69063266a1b0a61eb8 Conflicts: main/Android.mk
Diffstat (limited to 'btif/src/btif_util.c')
-rw-r--r--btif/src/btif_util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/btif/src/btif_util.c b/btif/src/btif_util.c
index 9ed2cb8..07f1896 100644
--- a/btif/src/btif_util.c
+++ b/btif/src/btif_util.c
@@ -137,6 +137,12 @@ UINT32 devclass2uint(DEV_CLASS dev_class)
return cod;
}
+void uint2devclass(UINT32 cod, DEV_CLASS dev_class)
+{
+ dev_class[2] = (UINT8)cod;
+ dev_class[1] = (UINT8)(cod >> 8);
+ dev_class[0] = (UINT8)(cod >> 16);
+}
static const UINT8 sdp_base_uuid[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB};