Error early on invalid tracker type for UST domain
[lttng-tools.git] / src / common / hashtable / hashtable.h
index 05c174228b6c8a5aa4d4fefaf1034ec4767f6638..0dd925645fcd9d725105c9cfda3157efe48106ff 100644 (file)
 #include <urcu.h>
 #include <stdint.h>
 
-#include "rculfhash.h"
-#include "rculfhash-internal.h"
 #include <common/macros.h>
+#include <urcu/rculfhash.h>
 
 extern unsigned long lttng_ht_seed;
 
-typedef unsigned long (*hash_fct)(void *_key, unsigned long seed);
+typedef unsigned long (*hash_fct)(const void *_key, unsigned long seed);
 typedef cds_lfht_match_fct hash_match_fct;
 
 enum lttng_ht_type {
@@ -104,7 +103,7 @@ LTTNG_HIDDEN
 void lttng_ht_node_free_two_u64(struct lttng_ht_node_two_u64 *node);
 
 LTTNG_HIDDEN
-void lttng_ht_lookup(struct lttng_ht *ht, void *key,
+void lttng_ht_lookup(struct lttng_ht *ht, const void *key,
                struct lttng_ht_iter *iter);
 
 /* Specialized add unique functions */
This page took 0.024178 seconds and 4 git commands to generate.