Initialize liblttng-ust-common in dependent libraries
[lttng-ust.git] / include / lttng / ust-common.h
diff --git a/include/lttng/ust-common.h b/include/lttng/ust-common.h
new file mode 100644 (file)
index 0000000..8396e6b
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright (C) 2021 Michael Jeanson <mjeanson@efficios.com>
+ *
+ * Public symbols of liblttng-ust-common.so
+ */
+
+#ifndef _LTTNG_UST_COMMON_H
+#define _LTTNG_UST_COMMON_H
+
+/*
+ * The liblttng-ust-common constructor is public so it can be called in the
+ * constructors of client libraries since there is no reliable way to guarantee
+ * the execution order of constructors across shared library.
+ */
+void lttng_ust_common_ctor(void)
+       __attribute__((constructor));
+
+#endif
This page took 0.023596 seconds and 4 git commands to generate.