X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fhashtable%2Fhashtable.h;h=e129ac5f88a063475d65aad3d136f851aea7e0fe;hb=21cf9b6b1843774306a76f4dccddddd706b64f79;hp=cefd43833b721604487d12e71a1a36280c7f3e30;hpb=4bd69c5f1161cd065f487da0f4c1aa03a73c47e4;p=lttng-tools.git diff --git a/src/common/hashtable/hashtable.h b/src/common/hashtable/hashtable.h index cefd43833..e129ac5f8 100644 --- a/src/common/hashtable/hashtable.h +++ b/src/common/hashtable/hashtable.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 David Goulet + * Copyright (C) 2011 EfficiOS Inc. * * SPDX-License-Identifier: GPL-2.0-only * @@ -15,10 +15,6 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif - LTTNG_EXPORT extern unsigned long lttng_ht_seed; typedef unsigned long (*hash_fct_type)(const void *_key, unsigned long seed); @@ -71,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 */ @@ -127,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 */