mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
att_dispatch: use bool for can send now functions
This commit is contained in:
parent
d8acf2678c
commit
4a7a258f11
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user