X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Fhashtable%2Fhashtable.h;h=e150190417b7a594db359fada7237c2871039390;hb=6dca8ba7dec3b31acb7b43f5e4431676acf4e664;hp=e2dae968d0040de1136f40a689018099eb2fc538;hpb=7966af5763c4aaca39df9bbfa9277ff15715c720;p=lttng-tools.git diff --git a/src/common/hashtable/hashtable.h b/src/common/hashtable/hashtable.h index e2dae968d..e15019041 100644 --- a/src/common/hashtable/hashtable.h +++ b/src/common/hashtable/hashtable.h @@ -12,13 +12,14 @@ #include #include +#include #include #ifdef __cplusplus extern "C" { #endif -extern unsigned long lttng_ht_seed; +LTTNG_EXPORT extern unsigned long lttng_ht_seed; typedef unsigned long (*hash_fct_type)(const void *_key, unsigned long seed); typedef cds_lfht_match_fct hash_match_fct; @@ -70,7 +71,7 @@ struct lttng_ht_node_two_u64 { }; /* Hashtable new and destroy */ -struct lttng_ht *lttng_ht_new(unsigned long size, int type); +struct lttng_ht *lttng_ht_new(unsigned long size, enum lttng_ht_type type); void lttng_ht_destroy(struct lttng_ht *ht); /* Specialized node init and free functions */