Fix: pass private data to context callbacks
[lttng-ust.git] / liblttng-ust / rculfhash-internal.h
index 86eb501f20415195cf94bb0a79e27c1f8400bca2..26971580aec9d146950bd8a3432433dc8cc6cdd1 100644 (file)
@@ -1,29 +1,15 @@
-#ifndef _LTTNG_UST_RCULFHASH_INTERNAL_H
-#define _LTTNG_UST_RCULFHASH_INTERNAL_H
-
 /*
- * liblttng-ust/rculfhash-internal.h
- *
- * Internal header for Lock-Free RCU Hash Table
- *
- * Copyright 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- * Copyright 2011 - Lai Jiangshan <laijs@cn.fujitsu.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
+ * SPDX-License-Identifier: LGPL-2.1-or-later
  *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
+ * Copyright 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright 2011 Lai Jiangshan <laijs@cn.fujitsu.com>
  *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Internal header for Lock-Free RCU Hash Table
  */
 
+#ifndef _LTTNG_UST_RCULFHASH_INTERNAL_H
+#define _LTTNG_UST_RCULFHASH_INTERNAL_H
+
 #include "rculfhash.h"
 #include <stdio.h>
 #include <stdlib.h>
@@ -139,8 +125,14 @@ struct lttng_ust_lfht {
         */
 };
 
-extern unsigned int lttng_ust_lfht_fls_ulong(unsigned long x);
-extern int lttng_ust_lfht_get_count_order_ulong(unsigned long x);
+extern unsigned int lttng_ust_lfht_fls_ulong(unsigned long x)
+       __attribute__((visibility("hidden")));
+
+extern int lttng_ust_lfht_get_count_order_u32(uint32_t x)
+       __attribute__((visibility("hidden")));
+
+extern int lttng_ust_lfht_get_count_order_ulong(unsigned long x)
+       __attribute__((visibility("hidden")));
 
 #ifdef POISON_FREE
 #define poison_free(ptr)                                       \
This page took 0.023513 seconds and 4 git commands to generate.