Skip to content

Commit 98d2119

Browse files
stadleroyashi
authored andcommitted
buffer: Fix csp_buffer_get_always not found
PR #872 made csp_buffer_get_always an internal function. This commit adds a forward declaration of the function in the test file to still be able to test it.
1 parent af28296 commit 98d2119

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/buffer.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
#include <zephyr/ztest.h>
88
#include <csp/csp.h>
99

10+
/* csp_buffer_get_always() is now an internal function
11+
* and not exposed in the public API, so we need to
12+
* declare it here for testing purposes.
13+
*/
14+
csp_packet_t * csp_buffer_get_always(void);
15+
1016
static void *setup(void)
1117
{
1218
csp_init();

0 commit comments

Comments
 (0)