summaryrefslogtreecommitdiffstats
path: root/btif/include/btif_sock_sdp.h
diff options
context:
space:
mode:
authorzzy <zhenye@broadcom.com>2012-10-11 14:48:58 -0700
committerMatthew Xie <mattx@google.com>2012-10-15 22:37:12 -0700
commit8aae7556993cdba8995146be134f8b77a8e15ba4 (patch)
tree9b3a5155adabc5f4613b39ab259be86e5ee706e7 /btif/include/btif_sock_sdp.h
parentd4cfae4991ee5f1d0f56900e6dc39097f9413202 (diff)
downloadexternal_bluetooth_bluedroid-8aae7556993cdba8995146be134f8b77a8e15ba4.zip
external_bluetooth_bluedroid-8aae7556993cdba8995146be134f8b77a8e15ba4.tar.gz
external_bluetooth_bluedroid-8aae7556993cdba8995146be134f8b77a8e15ba4.tar.bz2
Add serial port profile support and allow to connect to rfcomm channel without sdp discovery
bug 7272974 Change-Id: Idc10edc056b48da2fd96bea84eba3fb73b97bab1
Diffstat (limited to 'btif/include/btif_sock_sdp.h')
-rw-r--r--btif/include/btif_sock_sdp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/btif/include/btif_sock_sdp.h b/btif/include/btif_sock_sdp.h
index 5ca9959..9fe4768 100644
--- a/btif/include/btif_sock_sdp.h
+++ b/btif/include/btif_sock_sdp.h
@@ -18,11 +18,17 @@
#ifndef BTIF_SOCK_SDP_H
#define BTIF_SOCK_SDP_H
+static const UINT8 UUID_OBEX_OBJECT_PUSH[] = {0x00, 0x00, 0x11, 0x05, 0x00, 0x00, 0x10, 0x00,
+ 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB};
+static const UINT8 UUID_PBAP_PSE[] = {0x00, 0x00, 0x11, 0x2F, 0x00, 0x00, 0x10, 0x00,
+ 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB};
+static const UINT8 UUID_SPP[] = {0x00, 0x00, 0x11, 0x01, 0x00, 0x00, 0x10, 0x00,
+ 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB};
static inline BOOLEAN is_uuid_empty(const uint8_t* uuid)
{
static uint8_t empty_uuid[16];
- return memcmp(uuid, empty_uuid, sizeof(empty_uuid)) == 0;
+ return uuid == NULL || memcmp(uuid, empty_uuid, sizeof(empty_uuid)) == 0;
}
int add_rfc_sdp_rec(const char* name, const uint8_t* uuid, int scn);