File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ extern "C" {
3535#include <stdint.h>
3636#include <stdio.h>
3737
38- #define IPX_API
38+ #define IPX_API __attribute__((visibility("default")))
3939
4040typedef void ipx_msg_t ;
4141
@@ -52,6 +52,7 @@ typedef void ipx_msg_t;
5252 */
5353
5454/** Internal ring buffer type */
55+ struct IPX_API ipx_ring ;
5556typedef struct ipx_ring ipx_ring_t ;
5657
5758/**
Original file line number Diff line number Diff line change @@ -457,12 +457,12 @@ void ipx_ring_mw_mode(ipx_ring_t* ring, bool mode)
457457 ring -> mw_mode = mode ;
458458}
459459
460- IPX_API uint32_t ipx_ring_cnt (const ipx_ring_t * ring )
460+ uint32_t ipx_ring_cnt (const ipx_ring_t * ring )
461461{
462462 return ring -> writer .write_idx - ring -> reader .read_idx ;
463463}
464464
465- IPX_API uint32_t ipx_ring_size (const ipx_ring_t * ring )
465+ uint32_t ipx_ring_size (const ipx_ring_t * ring )
466466{
467467 return ring -> reader .size ;
468468}
You can’t perform that action at this time.
0 commit comments