#include <common/buffer-view.h>
#include <common/dynamic-array.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct lttng_consumer_local_data;
/* Commands for consumer */
*/
extern int consumer_quit;
-/* Flag used to temporarily pause data consumption from testpoints. */
-extern int data_consumption_paused;
+/*
+ * Flag used to temporarily pause data consumption from testpoints.
+ *
+ * This variable is dlsym-ed from a test, so needs to be exported.
+ */
+LTTNG_EXPORT extern int data_consumption_paused;
/* Return a human-readable consumer type string that is suitable for logging. */
static inline
int consumer_metadata_wakeup_pipe(const struct lttng_consumer_channel *channel);
void lttng_consumer_sigbus_handle(void *addr);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LIB_CONSUMER_H */