1 /****************************************************************************** 2 * 3 * Copyright 1999-2012 Broadcom Corporation 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ******************************************************************************/ 18 19 #ifndef SRVC_DIS_INT_H 20 #define SRVC_DIS_INT_H 21 22 #include <queue> 23 24 #include "gatt_api.h" 25 #include "internal_include/bt_target.h" 26 #include "srvc_api.h" 27 #include "srvc_eng_int.h" 28 29 #define DIS_SYSTEM_ID_SIZE 8 30 #define DIS_PNP_ID_SIZE 7 31 32 typedef struct { 33 tDIS_READ_CBACK* p_read_dis_cback; 34 tDIS_ATTR_MASK mask; 35 RawAddress addr; 36 } tDIS_REQ; 37 38 typedef struct { 39 tDIS_READ_CBACK* p_read_dis_cback; 40 uint8_t dis_read_uuid_idx; 41 tDIS_ATTR_MASK request_mask; 42 std::queue<tDIS_REQ> pend_reqs; 43 } tDIS_CB; 44 45 /* Global GATT data */ 46 extern tDIS_CB dis_cb; 47 48 void dis_c_cmpl_cback(tSRVC_CLCB* p_clcb, tGATTC_OPTYPE op, tGATT_STATUS status, 49 tGATT_CL_COMPLETE* p_data); 50 51 #endif 52