From ee9fbd25091e834cadbc9dc0da6defc99aeb5988 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 9 Apr 2019 12:41:11 +0200 Subject: [PATCH] mesh: remove unused prototypes from mesh_transport.h --- src/ble/mesh/mesh_lower_transport.c | 5 +++++ test/mesh/mesh_message_test.c | 1 + test/mesh/mesh_transport.h | 11 ----------- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/ble/mesh/mesh_lower_transport.c b/src/ble/mesh/mesh_lower_transport.c index a208c6340..46c120146 100644 --- a/src/ble/mesh/mesh_lower_transport.c +++ b/src/ble/mesh/mesh_lower_transport.c @@ -49,6 +49,11 @@ static uint16_t primary_element_address; +// temp prototypes upper transport +void mesh_upper_unsegmented_control_message_received(mesh_network_pdu_t * network_pdu); +void mesh_upper_transport_segmented_message_received(mesh_transport_pdu_t *transport_pdu); +void mesh_upper_transport_unsegmented_message_received(mesh_network_pdu_t * network_pdu); + static void mesh_print_hex(const char * name, const uint8_t * data, uint16_t len){ printf("%-20s ", name); printf_hexdump(data, len); diff --git a/test/mesh/mesh_message_test.c b/test/mesh/mesh_message_test.c index ba0b14ef4..adf873449 100644 --- a/test/mesh/mesh_message_test.c +++ b/test/mesh/mesh_message_test.c @@ -8,6 +8,7 @@ #include "ble/mesh/adv_bearer.h" #include "ble/mesh/mesh_crypto.h" #include "ble/mesh/mesh_network.h" +#include "ble/mesh/mesh_lower_transport.h" #include "mesh_transport.h" #include "btstack_util.h" #include "provisioning.h" diff --git a/test/mesh/mesh_transport.h b/test/mesh/mesh_transport.h index b81c95972..86144a802 100644 --- a/test/mesh/mesh_transport.h +++ b/test/mesh/mesh_transport.h @@ -51,12 +51,6 @@ extern "C" void mesh_transport_init(); -void mesh_lower_transport_set_seq(uint32_t seq); - -uint32_t mesh_lower_transport_next_seq(void); - -void mesh_lower_transport_message_processed_by_higher_layer(mesh_pdu_t * pdu); - void mesh_upper_transport_set_primary_element_address(uint16_t primary_element_address); void mesh_transport_set_device_key(const uint8_t * device_key); @@ -92,11 +86,6 @@ void mesh_upper_transport_send_unsegmented_access_pdu(mesh_network_pdu_t * netwo void mesh_upper_transport_send_segmented_access_pdu(mesh_transport_pdu_t * transport_pdu); -// temp prototypes upper transport -void mesh_upper_unsegmented_control_message_received(mesh_network_pdu_t * network_pdu); -void mesh_upper_transport_segmented_message_received(mesh_transport_pdu_t *transport_pdu); -void mesh_upper_transport_unsegmented_message_received(mesh_network_pdu_t * network_pdu); - // // Virtual Address Management //