bin: compile lttng-sessiond as C++
[lttng-tools.git] / src / common / pipe.h
index d9f43d66e03265d71342aeace9e4d91b5dd8bebc..b94d871e48426d57d9c88bc419bb659f46babebc 100644 (file)
 #include <common/macros.h>
 #include <sys/types.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 enum lttng_pipe_state {
        LTTNG_PIPE_STATE_OPENED = 1,
        LTTNG_PIPE_STATE_CLOSED = 2,
@@ -81,4 +85,8 @@ int lttng_pipe_release_readfd(struct lttng_pipe *pipe);
 /* Returns and releases the write end of the pipe. */
 int lttng_pipe_release_writefd(struct lttng_pipe *pipe);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LTTNG_PIPE_H */
This page took 0.026357 seconds and 4 git commands to generate.