att_dispatch: use bool for can send now functions

This commit is contained in:
Matthias Ringwald 2023-06-30 18:53:08 +02:00
parent d8acf2678c
commit 4a7a258f11
3 changed files with 5 additions and 5 deletions

View File

@ -128,11 +128,11 @@ void att_dispatch_register_server(btstack_packet_handler_t packet_handler){
l2cap_register_fixed_channel(att_packet_handler, L2CAP_CID_ATTRIBUTE_PROTOCOL); l2cap_register_fixed_channel(att_packet_handler, L2CAP_CID_ATTRIBUTE_PROTOCOL);
} }
int att_dispatch_client_can_send_now(hci_con_handle_t con_handle){ bool att_dispatch_client_can_send_now(hci_con_handle_t con_handle){
return l2cap_can_send_fixed_channel_packet_now(con_handle, L2CAP_CID_ATTRIBUTE_PROTOCOL); return l2cap_can_send_fixed_channel_packet_now(con_handle, L2CAP_CID_ATTRIBUTE_PROTOCOL);
} }
int att_dispatch_server_can_send_now(hci_con_handle_t con_handle){ bool att_dispatch_server_can_send_now(hci_con_handle_t con_handle){
return l2cap_can_send_fixed_channel_packet_now(con_handle, L2CAP_CID_ATTRIBUTE_PROTOCOL); return l2cap_can_send_fixed_channel_packet_now(con_handle, L2CAP_CID_ATTRIBUTE_PROTOCOL);
} }

View File

@ -68,13 +68,13 @@ void att_dispatch_register_server(btstack_packet_handler_t packet_handler);
* @brief can send packet for client * @brief can send packet for client
* @param con_handle * @param con_handle
*/ */
int att_dispatch_client_can_send_now(hci_con_handle_t con_handle); bool att_dispatch_client_can_send_now(hci_con_handle_t con_handle);
/** /**
* @brief can send packet for server * @brief can send packet for server
* @param con_handle * @param con_handle
*/ */
int att_dispatch_server_can_send_now(hci_con_handle_t con_handle); bool att_dispatch_server_can_send_now(hci_con_handle_t con_handle);
/** /**
* @brief Request emission of L2CAP_EVENT_CAN_SEND_NOW as soon as possible for client * @brief Request emission of L2CAP_EVENT_CAN_SEND_NOW as soon as possible for client

View File

@ -299,7 +299,7 @@ void att_dispatch_register_server(btstack_packet_handler_t packet_handler){
att_server_packet_handler = packet_handler; att_server_packet_handler = packet_handler;
} }
int att_dispatch_server_can_send_now(hci_con_handle_t con_handle){ bool att_dispatch_server_can_send_now(hci_con_handle_t con_handle){
UNUSED(con_handle); UNUSED(con_handle);
return l2cap_can_send_fixed_channel_packet_now_status; return l2cap_can_send_fixed_channel_packet_now_status;
} }