Fix: add extern "C" to two header files
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 2 Sep 2021 02:30:02 +0000 (22:30 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 7 Sep 2021 15:18:25 +0000 (11:18 -0400)
These are needed to build some lttng-tools binary as C++ programs.

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Iba97d9cc52f86fd01cc24111c53a85340595e4c4

include/lttng/ust-clock.h
include/lttng/ust-ctl.h

index 52455a612265e70571da6932ad0474f29df9c45a..06454e479d6d71eb59309de81e01f926011a5d0d 100644 (file)
 #include <stdint.h>
 #include <stddef.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * Set each callback for the trace clock override, and then enable the
  * override. Those functions return negative error values on error, 0 on
@@ -64,4 +68,8 @@ int lttng_ust_trace_clock_set_description_cb(const char *(*description)(void));
  */
 int lttng_ust_enable_trace_clock_override(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LTTNG_UST_CLOCK_H */
index 932940babf393304964e039a0cc5256aa50d96c5..d9eba3ef3bffac24928f8e233c9baa76fb68dd2a 100644 (file)
 #error "LTTNG_PACKED should be defined"
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef LTTNG_UST_UUID_LEN
 #define LTTNG_UST_UUID_LEN     16
 #endif
@@ -518,4 +522,8 @@ int ustctl_reply_register_channel(int sock,
        enum ustctl_channel_header header_type,
        int ret_code);                  /* return code. 0 ok, negative error */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _LTTNG_UST_CTL_H */
This page took 0.035976 seconds and 4 git commands to generate.