From 5ae3767212528bd87b2c13d81a18e71ace3ecbae Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 22 Apr 2019 12:20:07 +0200 Subject: [PATCH] mesh: rename callback registration for access messages --- test/mesh/mesh.c | 4 ++-- test/mesh/mesh_transport.c | 5 +++-- test/mesh/mesh_transport.h | 5 +++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/test/mesh/mesh.c b/test/mesh/mesh.c index 87bfb9e21..c35d14e70 100644 --- a/test/mesh/mesh.c +++ b/test/mesh/mesh.c @@ -1904,8 +1904,8 @@ int btstack_main(void) // Transport layers (lower + upper)) mesh_transport_init(); - mesh_upper_transport_register_segemented_message_handler(&mesh_segmented_message_handler); - mesh_upper_transport_register_unsegemented_message_handler(&mesh_unsegmented_message_handler); + mesh_upper_transport_register_segmented_access_message_handler(&mesh_segmented_message_handler); + mesh_upper_transport_register_unsegmented_access_message_handler(&mesh_unsegmented_message_handler); // PTS Virtual Address Label UUID - without Config Model, PTS uses our device uuid btstack_parse_hex("001BDC0810210B0E0A0C000B0E0A0C00", 16, label_uuid); diff --git a/test/mesh/mesh_transport.c b/test/mesh/mesh_transport.c index ae593bcf2..dde74b7aa 100644 --- a/test/mesh/mesh_transport.c +++ b/test/mesh/mesh_transport.c @@ -770,10 +770,11 @@ void mesh_upper_transport_set_primary_element_address(uint16_t unicast_address){ primary_element_address = unicast_address; } -void mesh_upper_transport_register_unsegemented_message_handler(void (*callback)(mesh_network_pdu_t * network_pdu)){ +void mesh_upper_transport_register_unsegmented_access_message_handler(void (*callback)(mesh_network_pdu_t *network_pdu)){ mesh_access_unsegmented_handler = callback; } -void mesh_upper_transport_register_segemented_message_handler(void (*callback)(mesh_transport_pdu_t * transport_pdu)){ +void mesh_upper_transport_register_segmented_access_message_handler( + void (*callback)(mesh_transport_pdu_t *transport_pdu)){ mesh_access_segmented_handler = callback; } diff --git a/test/mesh/mesh_transport.h b/test/mesh/mesh_transport.h index 87369ebc9..922d04afa 100644 --- a/test/mesh/mesh_transport.h +++ b/test/mesh/mesh_transport.h @@ -57,9 +57,10 @@ void mesh_transport_set_device_key(const uint8_t * device_key); void mesh_application_key_set(uint16_t appkey_index, uint8_t aid, const uint8_t * application_key); -void mesh_upper_transport_register_unsegemented_message_handler(void (*callback)(mesh_network_pdu_t * network_pdu)); +void mesh_upper_transport_register_unsegmented_access_message_handler(void (*callback)(mesh_network_pdu_t *network_pdu)); -void mesh_upper_transport_register_segemented_message_handler(void (*callback)(mesh_transport_pdu_t * transport_pdu)); +void mesh_upper_transport_register_segmented_access_message_handler( + void (*callback)(mesh_transport_pdu_t *transport_pdu)); // Control PDUs