X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fhashtable%2Fhashtable.h;h=4007a9c6c6b29696313415c60473f198cc859a6a;hb=8b3bd7a32e514aae56e718491a10f582b03140c3;hp=d2d6979bae1682c22515acbf8f413e939d1dca8f;hpb=d14d33bf091e72b23b1f90ea18a0a01bed098b76;p=lttng-tools.git diff --git a/src/common/hashtable/hashtable.h b/src/common/hashtable/hashtable.h index d2d6979ba..4007a9c6c 100644 --- a/src/common/hashtable/hashtable.h +++ b/src/common/hashtable/hashtable.h @@ -23,6 +23,8 @@ #include "rculfhash.h" #include "rculfhash-internal.h" +extern unsigned long lttng_ht_seed; + typedef unsigned long (*hash_fct)(void *_key, unsigned long seed); typedef cds_lfht_match_fct hash_match_fct; @@ -72,7 +74,9 @@ extern void lttng_ht_add_unique_str(struct lttng_ht *ht, struct lttng_ht_node_str *node); extern void lttng_ht_add_unique_ulong(struct lttng_ht *ht, struct lttng_ht_node_ulong *node); -struct lttng_ht_node_ulong *lttng_ht_add_replace_ulong(struct lttng_ht *ht, +extern struct lttng_ht_node_ulong *lttng_ht_add_replace_ulong( + struct lttng_ht *ht, struct lttng_ht_node_ulong *node); +extern void lttng_ht_add_ulong(struct lttng_ht *ht, struct lttng_ht_node_ulong *node); extern int lttng_ht_del(struct lttng_ht *ht, struct lttng_ht_iter *iter);