mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 06:39:53 +00:00
mesh: avoid 'template' as argument name
This commit is contained in:
parent
208c178460
commit
39317c7757
@ -669,15 +669,15 @@ void mesh_access_network_add_model_identifier(mesh_network_pdu_t * pdu, uint32_t
|
||||
|
||||
// access message template
|
||||
|
||||
mesh_network_pdu_t * mesh_access_setup_unsegmented_message(const mesh_access_message_t *template, ...){
|
||||
mesh_network_pdu_t * network_pdu = mesh_access_network_init(template->opcode);
|
||||
mesh_network_pdu_t * mesh_access_setup_unsegmented_message(const mesh_access_message_t *message_template, ...){
|
||||
mesh_network_pdu_t * network_pdu = mesh_access_network_init(message_template->opcode);
|
||||
if (!network_pdu) return NULL;
|
||||
|
||||
va_list argptr;
|
||||
va_start(argptr, template);
|
||||
va_start(argptr, message_template);
|
||||
|
||||
// add params
|
||||
const char * format = template->format;
|
||||
const char * format = message_template->format;
|
||||
uint16_t word;
|
||||
uint32_t longword;
|
||||
while (*format){
|
||||
@ -714,15 +714,15 @@ mesh_network_pdu_t * mesh_access_setup_unsegmented_message(const mesh_access_mes
|
||||
return network_pdu;
|
||||
}
|
||||
|
||||
mesh_transport_pdu_t * mesh_access_setup_segmented_message(const mesh_access_message_t *template, ...){
|
||||
mesh_transport_pdu_t * transport_pdu = mesh_access_transport_init(template->opcode);
|
||||
mesh_transport_pdu_t * mesh_access_setup_segmented_message(const mesh_access_message_t *message_template, ...){
|
||||
mesh_transport_pdu_t * transport_pdu = mesh_access_transport_init(message_template->opcode);
|
||||
if (!transport_pdu) return NULL;
|
||||
|
||||
va_list argptr;
|
||||
va_start(argptr, template);
|
||||
va_start(argptr, message_template);
|
||||
|
||||
// add params
|
||||
const char * format = template->format;
|
||||
const char * format = message_template->format;
|
||||
uint16_t word;
|
||||
uint32_t longword;
|
||||
while (*format){
|
||||
|
@ -254,8 +254,8 @@ void mesh_access_network_add_uint32(mesh_network_pdu_t * pdu, uint16_t value);
|
||||
void mesh_access_network_add_model_identifier(mesh_network_pdu_t * pdu, uint32_t model_identifier);
|
||||
|
||||
// message builder using template
|
||||
mesh_network_pdu_t * mesh_access_setup_unsegmented_message(const mesh_access_message_t *template, ...);
|
||||
mesh_transport_pdu_t * mesh_access_setup_segmented_message(const mesh_access_message_t *template, ...);
|
||||
mesh_network_pdu_t * mesh_access_setup_unsegmented_message(const mesh_access_message_t *message_template, ...);
|
||||
mesh_transport_pdu_t * mesh_access_setup_segmented_message(const mesh_access_message_t *message_template, ...);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* end of extern "C" */
|
||||
|
Loading…
x
Reference in New Issue
Block a user