Changeset 25c305d for lib


Ignore:
Timestamp:
05/18/18 11:39:59 (3 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, etsilive, master, rc-4.0.4, ringdecrementfix, ringperformance
Children:
fa555ec
Parents:
5ef19d8
git-author:
Shane Alcock <salcock@…> (03/09/18 17:03:39)
git-committer:
Shane Alcock <salcock@…> (05/18/18 11:39:59)
Message:

Add DLLEXPORT to SCB data-struct API

This exposes the symbols for the API in libtrace.so, so it
can be used outside of libtrace itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/data-struct/simple_circular_buffer.c

    rbd51874 r25c305d  
    1111#include "simple_circular_buffer.h"
    1212
    13 void libtrace_scb_init(libtrace_scb_t *buf, uint32_t size, uint16_t id) {
     13DLLEXPORT void libtrace_scb_init(libtrace_scb_t *buf, uint32_t size,
     14                uint16_t id) {
    1415
    1516        char anonname[32];
     
    3435}
    3536
    36 void libtrace_scb_destroy(libtrace_scb_t *buf) {
     37DLLEXPORT void libtrace_scb_destroy(libtrace_scb_t *buf) {
    3738        munmap(buf->address, buf->count_bytes * 2);
    3839}
    3940
    40 int libtrace_scb_recv_sock(libtrace_scb_t *buf, int sock, int recvflags) {
     41DLLEXPORT int libtrace_scb_recv_sock(libtrace_scb_t *buf, int sock,
     42                int recvflags) {
    4143        int space = buf->count_bytes - (buf->write_offset - buf->read_offset);
    4244        int ret;
     
    5456}
    5557
    56 uint8_t *libtrace_scb_get_read(libtrace_scb_t *buf, uint32_t *available) {
     58DLLEXPORT uint8_t *libtrace_scb_get_read(libtrace_scb_t *buf,
     59                uint32_t *available) {
    5760
    5861        *available = buf->write_offset - buf->read_offset;
     
    6063}
    6164
    62 void libtrace_scb_advance_read(libtrace_scb_t *buf, uint32_t forward) {
     65DLLEXPORT void libtrace_scb_advance_read(libtrace_scb_t *buf,
     66                uint32_t forward) {
    6367
    6468        buf->read_offset += forward;
Note: See TracChangeset for help on using the changeset viewer.