sdp_client_rfcomm: mark read-only args as const

This commit is contained in:
Matthias Ringwald 2017-04-06 14:16:05 +02:00
parent 5222912b1f
commit 55bb522c69
2 changed files with 4 additions and 4 deletions

View File

@ -304,7 +304,7 @@ void sdp_client_query_rfcomm_init(void){
// Public API
uint8_t sdp_client_query_rfcomm_channel_and_name_for_search_pattern(btstack_packet_handler_t callback, bd_addr_t remote, uint8_t * service_search_pattern){
uint8_t sdp_client_query_rfcomm_channel_and_name_for_search_pattern(btstack_packet_handler_t callback, bd_addr_t remote, const uint8_t * service_search_pattern){
if (!sdp_client_ready()) return SDP_QUERY_BUSY;
@ -323,7 +323,7 @@ uint8_t sdp_client_query_rfcomm_channel_and_name_for_uuid(btstack_packet_handler
return 0;
}
uint8_t sdp_client_query_rfcomm_channel_and_name_for_uuid128(btstack_packet_handler_t callback, bd_addr_t remote, uint8_t * uuid128){
uint8_t sdp_client_query_rfcomm_channel_and_name_for_uuid128(btstack_packet_handler_t callback, bd_addr_t remote, const uint8_t * uuid128){
if (!sdp_client_ready()) return SDP_QUERY_BUSY;

View File

@ -62,12 +62,12 @@ uint8_t sdp_client_query_rfcomm_channel_and_name_for_uuid(btstack_packet_handler
* @brief Searches SDP records on a remote device for RFCOMM services with a given 128-bit UUID.
* @note calls sdp_service_search_pattern_for_uuid128 that uses global buffer
*/
uint8_t sdp_client_query_rfcomm_channel_and_name_for_uuid128(btstack_packet_handler_t callback, bd_addr_t remote, uint8_t * uuid128);
uint8_t sdp_client_query_rfcomm_channel_and_name_for_uuid128(btstack_packet_handler_t callback, bd_addr_t remote, const uint8_t * uuid128);
/**
* @brief Searches SDP records on a remote device for RFCOMM services with a given service search pattern.
*/
uint8_t sdp_client_query_rfcomm_channel_and_name_for_search_pattern(btstack_packet_handler_t callback, bd_addr_t remote, uint8_t * des_serviceSearchPattern);
uint8_t sdp_client_query_rfcomm_channel_and_name_for_search_pattern(btstack_packet_handler_t callback, bd_addr_t remote, const uint8_t * des_serviceSearchPattern);
/* API_END */