Skip to content

Commit 96fc326

Browse files
author
Pavel Siska
committed
ipfixprobe - fix visibility of ipx_ring
1 parent 1802e51 commit 96fc326

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

include/ipfixprobe/ring.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

4040
typedef 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;
5556
typedef struct ipx_ring ipx_ring_t;
5657

5758
/**

src/core/ring.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)