Changeset bd6576d


Ignore:
Timestamp:
03/06/12 14:15:17 (9 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
60f3c4c
Parents:
c5a4210
Message:
  • Export the wandio functions - they might come in handy for users and we're installing wandio.h anyway...
Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/wandio.c

    rf258932 rbd6576d  
    125125#endif
    126126
    127 io_t *wandio_create(const char *filename)
     127DLLEXPORT io_t *wandio_create(const char *filename)
    128128{
    129129        parse_env();
     
    173173}
    174174
    175 off_t wandio_tell(io_t *io)
     175DLLEXPORT off_t wandio_tell(io_t *io)
    176176{
    177177        if (!io->source->tell) {
     
    182182}
    183183
    184 off_t wandio_seek(io_t *io, off_t offset, int whence)
     184DLLEXPORT off_t wandio_seek(io_t *io, off_t offset, int whence)
    185185{
    186186        if (!io->source->seek) {
     
    191191}
    192192
    193 off_t wandio_read(io_t *io, void *buffer, off_t len)
     193DLLEXPORT off_t wandio_read(io_t *io, void *buffer, off_t len)
    194194{
    195195        off_t ret;
     
    201201}
    202202
    203 off_t wandio_peek(io_t *io, void *buffer, off_t len)
     203DLLEXPORT off_t wandio_peek(io_t *io, void *buffer, off_t len)
    204204{
    205205        off_t ret;
     
    216216}
    217217
    218 void wandio_destroy(io_t *io)
     218DLLEXPORT void wandio_destroy(io_t *io)
    219219{
    220220        if (keep_stats)
     
    223223}
    224224
    225 iow_t *wandio_wcreate(const char *filename, int compress_type, int compression_level, int flags)
     225DLLEXPORT iow_t *wandio_wcreate(const char *filename, int compress_type, int compression_level, int flags)
    226226{
    227227        iow_t *iow;
     
    262262}
    263263
    264 off_t wandio_wwrite(iow_t *iow, const void *buffer, off_t len)
     264DLLEXPORT off_t wandio_wwrite(iow_t *iow, const void *buffer, off_t len)
    265265{
    266266#if WRITE_TRACE
     
    270270}
    271271
    272 void wandio_wdestroy(iow_t *iow)
     272DLLEXPORT void wandio_wdestroy(iow_t *iow)
    273273{
    274274        iow->source->close(iow);
  • lib/wandio.h

    rf258932 rbd6576d  
    3939#include <inttypes.h>
    4040#include <stdbool.h>
     41
     42#if __GNUC__ >= 4
     43        #ifdef LT_BUILDING_DLL
     44                #define DLLEXPORT __attribute__ ((visibility("default")))
     45                #define DLLLOCAL __attribute__ ((visibility("hidden")))
     46        #else
     47                #define DLLEXPORT
     48                #define DLLLOCAL
     49        #endif
     50#else
     51        #define DLLEXPORT
     52        #define DLLLOCAL
     53#endif
     54
     55
    4156
    4257/** @file
Note: See TracChangeset for help on using the changeset viewer.