Error early on invalid tracker type for UST domain
[lttng-tools.git] / src / common / hashtable / hashtable.h
index a3d41d94d29a4f1b04f716980b8497156f5e3f1f..0dd925645fcd9d725105c9cfda3157efe48106ff 100644 (file)
@@ -26,7 +26,7 @@
 
 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 {
@@ -103,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.024087 seconds and 4 git commands to generate.