Changeset 1756


Ignore:
Timestamp:
03/06/12 14:15:17 (15 months ago)
Author:
salcock
Message:
  • Export the wandio functions - they might come in handy for users and we're installing wandio.h anyway...
Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/wandio.c

    r1727 r1756  
    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); 
  • trunk/lib/wandio.h

    r1727 r1756  
    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.