/* * Copyright (C) 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *//* ... */#ifndef__BT_SDP_H__#define__BT_SDP_H__#include<stdint.h>// #include "bluetooth.h"#include"common/bt_defs.h"#include"esp_bt_defs.h"#defineSDP_OPP_SUPPORTED_FORMATS_MAX_LENGTH15/** * These events are handled by the state machine *//* ... */typedefenum{SDP_TYPE_RAW,// Used to carry raw SDP search data for unknown UUIDsSDP_TYPE_MAP_MAS,// Message Access Profile - ServerSDP_TYPE_MAP_MNS,// Message Access Profile - Client (Notification Server)SDP_TYPE_PBAP_PSE,// Phone Book Profile - ServerSDP_TYPE_PBAP_PCE,// Phone Book Profile - ClientSDP_TYPE_OPP_SERVER,// Object Push ProfileSDP_TYPE_SAP_SERVER,// SIM Access ProfileSDP_TYPE_DIP_SERVER,// Device Identification Profile}{ ... }bluetooth_sdp_types;/** * Some signals need additional pointers, hence we introduce a * generic way to handle these pointers. *//* ... */typedefstruct_bluetooth_sdp_hdr_overlay{bluetooth_sdp_typestype;esp_bt_uuid_tuuid;uint32_tservice_name_length;char*service_name;int32_trfcomm_channel_number;int32_tl2cap_psm;int32_tprofile_version;intuser1_ptr_len;uint8_t*user1_ptr;intuser2_ptr_len;// not useduint8_t*user2_ptr;// not used}{ ... }bluetooth_sdp_hdr_overlay;typedefstruct_bluetooth_sdp_raw_record{bluetooth_sdp_hdr_overlayhdr;}{ ... }bluetooth_sdp_raw_record;typedefstruct_bluetooth_sdp_mas_record{bluetooth_sdp_hdr_overlayhdr;uint32_tmas_instance_id;uint32_tsupported_features;uint32_tsupported_message_types;}{ ... }bluetooth_sdp_mas_record;typedefstruct_bluetooth_sdp_mns_record{bluetooth_sdp_hdr_overlayhdr;uint32_tsupported_features;}{ ... }bluetooth_sdp_mns_record;typedefstruct_bluetooth_sdp_pse_record{bluetooth_sdp_hdr_overlayhdr;uint32_tsupported_features;uint32_tsupported_repositories;}{ ... }bluetooth_sdp_pse_record;typedefstruct_bluetooth_sdp_pce_record{bluetooth_sdp_hdr_overlayhdr;}{ ... }bluetooth_sdp_pce_record;typedefstruct_bluetooth_sdp_ops_record{bluetooth_sdp_hdr_overlayhdr;intsupported_formats_list_len;uint8_tsupported_formats_list[SDP_OPP_SUPPORTED_FORMATS_MAX_LENGTH];}{ ... }bluetooth_sdp_ops_record;typedefstruct_bluetooth_sdp_sap_record{bluetooth_sdp_hdr_overlayhdr;}{ ... }bluetooth_sdp_sap_record;typedefstruct_bluetooth_sdp_dip_record{bluetooth_sdp_hdr_overlayhdr;uint16_tvendor;uint16_tvendor_id_source;uint16_tproduct;uint16_tversion;boolprimary_record;}{ ... }bluetooth_sdp_dip_record;typedefunion{bluetooth_sdp_hdr_overlayhdr;bluetooth_sdp_raw_recordraw;bluetooth_sdp_mas_recordmas;bluetooth_sdp_mns_recordmns;bluetooth_sdp_pse_recordpse;bluetooth_sdp_pce_recordpce;bluetooth_sdp_ops_recordops;bluetooth_sdp_sap_recordsap;bluetooth_sdp_dip_recorddip;}{ ... }bluetooth_sdp_record;/* ... */#endif/* __BT_SDP_H__ */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.