Remove extern "C" from internal headers
[lttng-tools.git] / src / common / index-allocator.h
index 9dbd745e6bdaf52ef1ccebae2dffd7c3b1308e82..ee7c2ec758dd5dd707780b9a42ae5d3c0d4fab6c 100644 (file)
@@ -9,10 +9,7 @@
 #define _COMMON_INDEX_ALLOCATOR_H
 
 #include <inttypes.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <lttng/lttng-export.h>
 
 struct lttng_index_allocator;
 
@@ -25,18 +22,21 @@ enum lttng_index_allocator_status {
 /*
  * Create an index allocator of `index_count` slots.
  */
+extern "C" LTTNG_EXPORT
 struct lttng_index_allocator *lttng_index_allocator_create(
                uint64_t index_count);
 
 /*
  * Get the number of indexes currently in use.
  */
+extern "C" LTTNG_EXPORT
 uint64_t lttng_index_allocator_get_index_count(
        struct lttng_index_allocator *allocator);
 
 /*
  * Allocate (i.e. reserve) a slot.
  */
+extern "C" LTTNG_EXPORT
 enum lttng_index_allocator_status lttng_index_allocator_alloc(
                struct lttng_index_allocator *allocator,
                uint64_t *index);
@@ -45,16 +45,14 @@ enum lttng_index_allocator_status lttng_index_allocator_alloc(
  * Release a slot by index. The slot will be re-used by the index allocator
  * in future 'alloc' calls.
  */
+extern "C" LTTNG_EXPORT
 enum lttng_index_allocator_status lttng_index_allocator_release(
                struct lttng_index_allocator *allocator, uint64_t index);
 
 /*
  * Destroy an index allocator.
  */
+extern "C" LTTNG_EXPORT
 void lttng_index_allocator_destroy(struct lttng_index_allocator *allocator);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* _COMMON_INDEX_ALLOCATOR_H */
This page took 0.02356 seconds and 4 git commands to generate.