lib: make symbols in prio-head hidden
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 19 Nov 2019 17:01:30 +0000 (12:01 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 20 Nov 2019 19:03:43 +0000 (14:03 -0500)
These are not supposed to be exposed by the shared library, so make them
hidden.

Change-Id: If1f728f1b536d1be1e38dfff8ca2aba8d4bd1868
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2404
Tested-by: jenkins <jenkins@lttng.org>
src/lib/prio-heap/prio-heap.h

index bbf1b3bfe0c13e01c1e76e0d3bdc77819fc89016..59fddb84ace25cfd0943b970e8d25c68245d2397 100644 (file)
@@ -65,6 +65,7 @@ static inline void *bt_heap_maximum(const struct ptr_heap *heap)
  *
  * Returns -ENOMEM if out of memory.
  */
+BT_HIDDEN
 extern int bt_heap_init(struct ptr_heap *heap,
                     size_t alloc_len,
                     int gt(void *a, void *b));
@@ -73,6 +74,7 @@ extern int bt_heap_init(struct ptr_heap *heap,
  * bt_heap_free - free the heap
  * @heap: the heap to free
  */
+BT_HIDDEN
 extern void bt_heap_free(struct ptr_heap *heap);
 
 /**
@@ -84,6 +86,7 @@ extern void bt_heap_free(struct ptr_heap *heap);
  *
  * Returns -ENOMEM if out of memory.
  */
+BT_HIDDEN
 extern int bt_heap_insert(struct ptr_heap *heap, void *p);
 
 /**
@@ -93,6 +96,7 @@ extern int bt_heap_insert(struct ptr_heap *heap, void *p);
  * Returns the largest element in the heap. It removes this element from the
  * heap. Returns NULL if the heap is empty.
  */
+BT_HIDDEN
 extern void *bt_heap_remove(struct ptr_heap *heap);
 
 /**
@@ -104,6 +108,7 @@ extern void *bt_heap_remove(struct ptr_heap *heap);
  * return NULL. This algorithm has a complexity of O(n), which is higher than
  * O(log(n)) provided by the rest of this API.
  */
+BT_HIDDEN
 extern void *bt_heap_cherrypick(struct ptr_heap *heap, void *p);
 
 /**
@@ -118,6 +123,7 @@ extern void *bt_heap_cherrypick(struct ptr_heap *heap, void *p);
  * This is the equivalent of calling bt_heap_remove() and then bt_heap_insert(), but
  * it only rebalances the heap once. It never allocates memory.
  */
+BT_HIDDEN
 extern void *bt_heap_replace_max(struct ptr_heap *heap, void *p);
 
 /**
@@ -127,6 +133,7 @@ extern void *bt_heap_replace_max(struct ptr_heap *heap, void *p);
  *
  * Returns -ENOMEM if out of memory.
  */
+BT_HIDDEN
 extern int bt_heap_copy(struct ptr_heap *dst, struct ptr_heap *src);
 
 #endif /* _BABELTRACE_PRIO_HEAP_H */
This page took 0.024788 seconds and 4 git commands to generate.