Changeset b7a328d


Ignore:
Timestamp:
11/10/09 00:19:10 (11 years ago)
Author:
Perry Lorier <perry@…>
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:
e46cb80
Parents:
4f8703ae
Message:

Make sure all symbols are exported correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    rdfda78f rb7a328d  
    7171    typedef unsigned    __int32 uint32_t;
    7272    typedef unsigned    __int64 uint64_t;
    73     #ifdef BUILDING_DLL
     73    #ifdef LT_BUILDING_DLL
    7474        #define DLLEXPORT __declspec(dllexport)
    7575    #else
     
    8989        #   include <stdint.h>
    9090    #endif
    91     #ifdef HAVE_GCCVISIBILITYPATCH
    92         #define DLLEXPORT __attribute__ (visibility("default"))
    93         #define DLLLOCAL __attribute__ (visibility("hidden"))
     91    #if __GNUC__ >= 4
     92        #ifdef LT_BUILDING_DLL
     93                #define DLLEXPORT __attribute__ ((visibility("default")))
     94                #define DLLLOCAL __attribute__ ((visibility("hidden")))
     95        #else
     96                #define DLLEXPORT
     97                #define DLLLOCAL
     98        #endif
    9499    #else
    95100        #define DLLEXPORT
     
    897902 * If this is not known, this will return UINT64_MAX
    898903 */
     904DLLEXPORT
    899905uint64_t trace_get_received_packets(libtrace_t *trace);
    900906
     
    908914 * If this is not known, this will return UINT64_MAX
    909915 */
     916DLLEXPORT
    910917uint64_t trace_get_filtered_packets(libtrace_t *trace);
    911918
     
    914921 * @returns The number of packets captured, but dropped due to buffer overruns
    915922 */
     923DLLEXPORT
    916924uint64_t trace_get_dropped_packets(libtrace_t *trace);
    917925
     
    920928 * @returns The number of packets returned to the user of the library.
    921929 */
     930DLLEXPORT
    922931uint64_t trace_get_accepted_packets(libtrace_t *trace);
    923932
Note: See TracChangeset for help on using the changeset viewer.