Changeset abda273 for lib/libtrace.h.in


Ignore:
Timestamp:
04/10/14 12:42:01 (7 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
19135af
Parents:
df668eb
Message:

Remove inline functions that cause compile warnings when building external applications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    rd6a56b6 rabda273  
    196196typedef struct libtrace_filter_t libtrace_filter_t;
    197197
    198 /** Opaque structure holding information about a result */
    199 typedef struct libtrace_result_t libtrace_result_t;
     198/** Structure holding information about a result */
     199typedef struct libtrace_result_t {
     200        uint64_t key;
     201        void * value;
     202} libtrace_result_t;
    200203
    201204typedef struct libtrace_message_t libtrace_message_t;
     
    31173120DLLEXPORT int trace_pstop(libtrace_t *libtrace);
    31183121DLLEXPORT void trace_join(libtrace_t * trace);
    3119 DLLEXPORT inline void print_contention_stats (libtrace_t *libtrace);
     3122DLLEXPORT void print_contention_stats (libtrace_t *libtrace);
    31203123DLLEXPORT libtrace_result_t *trace_create_result();
    31213124
    3122 typedef struct libtrace_result_t {
    3123         uint64_t key;
    3124         void * value;
    3125 } libtrace_result_t;
    3126 
    3127 DLLEXPORT inline void libtrace_result_set_key(libtrace_result_t * result, uint64_t key);
    3128 DLLEXPORT inline uint64_t libtrace_result_get_key(libtrace_result_t * result);
    3129 DLLEXPORT inline void libtrace_result_set_value(libtrace_result_t * result, void * value);
    3130 DLLEXPORT inline void* libtrace_result_get_value(libtrace_result_t * result);
    3131 DLLEXPORT inline void libtrace_result_set_key_value(libtrace_result_t * result, uint64_t key, void * value);
     3125DLLEXPORT void libtrace_result_set_key(libtrace_result_t * result, uint64_t key);
     3126DLLEXPORT uint64_t libtrace_result_get_key(libtrace_result_t * result);
     3127DLLEXPORT void libtrace_result_set_value(libtrace_result_t * result, void * value);
     3128DLLEXPORT void* libtrace_result_get_value(libtrace_result_t * result);
     3129DLLEXPORT void libtrace_result_set_key_value(libtrace_result_t * result, uint64_t key, void * value);
    31323130DLLEXPORT void trace_destroy_result(libtrace_result_t ** result);
    31333131
Note: See TracChangeset for help on using the changeset viewer.