Remove extern "C" from internal headers
[lttng-tools.git] / src / common / hashtable / hashtable.h
index e2dae968d0040de1136f40a689018099eb2fc538..3a515fdbde030e2639d67a8caaf90dda9bb453d5 100644 (file)
 #include <stdint.h>
 
 #include <common/macros.h>
+#include <lttng/lttng-export.h>
 #include <urcu/rculfhash.h>
 
-#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 +67,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 */
@@ -126,8 +123,4 @@ struct lttng_ht_node_u64 *lttng_ht_iter_get_node_u64(
 struct lttng_ht_node_two_u64 *lttng_ht_iter_get_node_two_u64(
                struct lttng_ht_iter *iter);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* _LTT_HT_H */
This page took 0.024068 seconds and 4 git commands to generate.