Changeset abda273


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.

Location:
lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/data-struct/vector.h

    read9478 rabda273  
    1414} libtrace_vector_t;
    1515
    16 DLLEXPORT inline void libtrace_vector_init(libtrace_vector_t *v, size_t element_size);
    17 DLLEXPORT inline void libtrace_vector_push_back(libtrace_vector_t *v, void *d);
    18 DLLEXPORT inline size_t libtrace_vector_get_size(libtrace_vector_t *v);
    19 DLLEXPORT inline int libtrace_vector_get(libtrace_vector_t *v, size_t location, void *d);
    20 DLLEXPORT inline void libtrace_vector_append(libtrace_vector_t *dest, libtrace_vector_t *src);
    21 DLLEXPORT inline void libtrace_vector_destroy(libtrace_vector_t *v);
    22 DLLEXPORT inline void libtrace_zero_vector(libtrace_vector_t *v);
    23 DLLEXPORT inline int libtrace_vector_remove_front(libtrace_vector_t *v);
    24 DLLEXPORT inline void libtrace_vector_empty(libtrace_vector_t *v);
     16DLLEXPORT void libtrace_vector_init(libtrace_vector_t *v, size_t element_size);
     17DLLEXPORT void libtrace_vector_push_back(libtrace_vector_t *v, void *d);
     18DLLEXPORT size_t libtrace_vector_get_size(libtrace_vector_t *v);
     19DLLEXPORT int libtrace_vector_get(libtrace_vector_t *v, size_t location, void *d);
     20DLLEXPORT void libtrace_vector_append(libtrace_vector_t *dest, libtrace_vector_t *src);
     21DLLEXPORT void libtrace_vector_destroy(libtrace_vector_t *v);
     22DLLEXPORT void libtrace_zero_vector(libtrace_vector_t *v);
     23DLLEXPORT int libtrace_vector_remove_front(libtrace_vector_t *v);
     24DLLEXPORT void libtrace_vector_empty(libtrace_vector_t *v);
    2525#endif
  • 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
  • lib/trace_parallel.c

    r29bbef0 rabda273  
    120120}
    121121
    122 DLLEXPORT inline void print_contention_stats(libtrace_t *libtrace) {
     122DLLEXPORT void print_contention_stats(libtrace_t *libtrace) {
    123123        int i;
    124124        struct multithreading_stats totals = {0};
     
    14101410}
    14111411
    1412 DLLEXPORT inline void libtrace_result_set_key(libtrace_result_t * result, uint64_t key) {
     1412DLLEXPORT void libtrace_result_set_key(libtrace_result_t * result, uint64_t key) {
    14131413        result->key = key;
    14141414}
    1415 DLLEXPORT inline uint64_t libtrace_result_get_key(libtrace_result_t * result) {
     1415DLLEXPORT uint64_t libtrace_result_get_key(libtrace_result_t * result) {
    14161416        return result->key;
    14171417}
    1418 DLLEXPORT inline void libtrace_result_set_value(libtrace_result_t * result, void * value) {
     1418DLLEXPORT void libtrace_result_set_value(libtrace_result_t * result, void * value) {
    14191419        result->value = value;
    14201420}
    1421 DLLEXPORT inline void* libtrace_result_get_value(libtrace_result_t * result) {
     1421DLLEXPORT void* libtrace_result_get_value(libtrace_result_t * result) {
    14221422        return result->value;
    14231423}
    1424 DLLEXPORT inline void libtrace_result_set_key_value(libtrace_result_t * result, uint64_t key, void * value) {
     1424DLLEXPORT void libtrace_result_set_key_value(libtrace_result_t * result, uint64_t key, void * value) {
    14251425        result->key = key;
    14261426        result->value = value;
Note: See TracChangeset for help on using the changeset viewer.