summaryrefslogtreecommitdiffstats
path: root/include/hardware/bt_sdp.h
diff options
context:
space:
mode:
authorCasper Bonde <c.bonde@samsung.com>2015-04-16 15:25:41 +0200
committerAndre Eisenbach <eisenbach@google.com>2015-06-02 17:00:50 -0700
commit207331d05023ae8226219887c67a26582c1d7068 (patch)
tree87f5f02cc66691cb014ba2ad84a6293c844eda01 /include/hardware/bt_sdp.h
parentf19ee6b70df52d535a3ef3321d0e9e2eca560ede (diff)
downloadhardware_libhardware-207331d05023ae8226219887c67a26582c1d7068.zip
hardware_libhardware-207331d05023ae8226219887c67a26582c1d7068.tar.gz
hardware_libhardware-207331d05023ae8226219887c67a26582c1d7068.tar.bz2
SAP: Change to use new SDP Api (3/4)
Added struct to carry SAP SDP record data. Change-Id: I511a8de39a6d750e3e94bee72f48b3356ce6cd02 Signed-off-by: Casper Bonde <c.bonde@samsung.com>
Diffstat (limited to 'include/hardware/bt_sdp.h')
-rw-r--r--include/hardware/bt_sdp.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/include/hardware/bt_sdp.h b/include/hardware/bt_sdp.h
index d298ad6..8f39bc5 100644
--- a/include/hardware/bt_sdp.h
+++ b/include/hardware/bt_sdp.h
@@ -26,12 +26,13 @@ __BEGIN_DECLS
* These events are handled by the state machine
*/
typedef enum {
- SDP_TYPE_RAW, // Used to carry raw SDP search data for unknown UUID's
- SDP_TYPE_MAP_MAS,
- SDP_TYPE_MAP_MNS,
- SDP_TYPE_PBAP_PSE,
- SDP_TYPE_PBAP_PCE,
- SDP_TYPE_OPP_SERVER
+ SDP_TYPE_RAW, // Used to carry raw SDP search data for unknown UUIDs
+ SDP_TYPE_MAP_MAS, // Message Access Profile - Server
+ SDP_TYPE_MAP_MNS, // Message Access Profile - Client (Notification Server)
+ SDP_TYPE_PBAP_PSE, // Phone Book Profile - Server
+ SDP_TYPE_PBAP_PCE, // Phone Book Profile - Client
+ SDP_TYPE_OPP_SERVER, // Object Push Profile
+ SDP_TYPE_SAP_SERVER // SIM Access Profile
} bluetooth_sdp_types;
typedef struct _bluetooth_sdp_hdr {
@@ -92,6 +93,10 @@ typedef struct _bluetooth_sdp_ops_record {
uint8_t supported_formats_list[SDP_OPP_SUPPORTED_FORMATS_MAX_LENGTH];
} bluetooth_sdp_ops_record;
+typedef struct _bluetooth_sdp_sap_record {
+ bluetooth_sdp_hdr_overlay hdr;
+} bluetooth_sdp_sap_record;
+
typedef union {
bluetooth_sdp_hdr_overlay hdr;
bluetooth_sdp_mas_record mas;
@@ -99,6 +104,7 @@ typedef union {
bluetooth_sdp_pse_record pse;
bluetooth_sdp_pce_record pce;
bluetooth_sdp_ops_record ops;
+ bluetooth_sdp_sap_record sap;
} bluetooth_sdp_record;