1 /*
2 * Copyright 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #include "stack/connection_manager/connection_manager.h"
18 #include "stack/gatt/gatt_int.h"
19 #include "stack/include/bt_hdr.h"
20 #include "types/raw_address.h"
21
22 /** stack/gatt/att_protocol.cc */
attp_build_sr_msg(tGATT_TCB &,uint8_t,tGATT_SR_MSG *,uint16_t)23 BT_HDR* attp_build_sr_msg(tGATT_TCB& /*tcb*/, uint8_t /*op_code*/, tGATT_SR_MSG* /*p_msg*/,
24 uint16_t /*payload_size*/) {
25 return nullptr;
26 }
attp_send_cl_confirmation_msg(tGATT_TCB &,uint16_t)27 tGATT_STATUS attp_send_cl_confirmation_msg(tGATT_TCB& /*tcb*/, uint16_t /*cid*/) {
28 return GATT_SUCCESS;
29 }
attp_send_cl_msg(tGATT_TCB &,tGATT_CLCB *,uint8_t,tGATT_CL_MSG *)30 tGATT_STATUS attp_send_cl_msg(tGATT_TCB& /*tcb*/, tGATT_CLCB* /*p_clcb*/, uint8_t /*op_code*/,
31 tGATT_CL_MSG* /*p_msg*/) {
32 return GATT_SUCCESS;
33 }
attp_send_sr_msg(tGATT_TCB &,uint16_t,BT_HDR *)34 tGATT_STATUS attp_send_sr_msg(tGATT_TCB& /*tcb*/, uint16_t /*cid*/, BT_HDR* /*p_msg*/) {
35 return GATT_SUCCESS;
36 }
37
38 /** stack/gatt/gatt_attr.cc */
gatt_sr_init_cl_status(tGATT_TCB &)39 void gatt_sr_init_cl_status(tGATT_TCB& /*tcb*/) {}
40
41 /** stack/gatt/gatt_cl.cc */
gatt_act_discovery(tGATT_CLCB *)42 void gatt_act_discovery(tGATT_CLCB* /*p_clcb*/) {}
43
44 /** stack/gatt/gatt_main.cc */
gatt_update_app_use_link_flag(tGATT_IF,tGATT_TCB *,bool,bool)45 void gatt_update_app_use_link_flag(tGATT_IF /*gatt_if*/, tGATT_TCB* /*p_tcb*/, bool /*is_add*/,
46 bool /*check_acl_link*/) {}
gatts_proc_srv_chg_ind_ack(tGATT_TCB)47 void gatts_proc_srv_chg_ind_ack(tGATT_TCB) {}
gatt_disconnect(tGATT_TCB *)48 bool gatt_disconnect(tGATT_TCB* /*p_tcb*/) { return false; }
gatt_get_ch_state(tGATT_TCB *)49 tGATT_CH_STATE gatt_get_ch_state(tGATT_TCB* /*p_tcb*/) { return GATT_CH_CLOSE; }
gatt_set_ch_state(tGATT_TCB *,tGATT_CH_STATE)50 void gatt_set_ch_state(tGATT_TCB* /*p_tcb*/, tGATT_CH_STATE /*ch_state*/) {}
51
52 /** stack/gatt/gatt_sr.cc */
gatt_sr_enqueue_cmd(tGATT_TCB &,uint16_t,uint8_t,uint16_t)53 uint32_t gatt_sr_enqueue_cmd(tGATT_TCB& /*tcb*/, uint16_t /*cid*/, uint8_t /*op_code*/,
54 uint16_t /*handle*/) {
55 return 0x0000;
56 }
gatt_dequeue_sr_cmd(tGATT_TCB &,uint16_t)57 void gatt_dequeue_sr_cmd(tGATT_TCB& /*tcb*/, uint16_t /*cid*/) {}
58