bin: compile lttng-sessiond as C++
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.h
index e6805a983b706e4a31a414ab704fd65133fa59f0..c2fa6408bd53c4bfa623e2ad97f20ed66284f32f 100644 (file)
 #include <common/lttng-kernel-old.h>
 #include <common/sessiond-comm/sessiond-comm.h>        /* for struct lttng_filter_bytecode */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int kernctl_create_session(int fd);
 int kernctl_open_metadata(int fd, struct lttng_channel_attr *chops);
 int kernctl_create_channel(int fd, struct lttng_channel_attr *chops);
@@ -125,4 +129,8 @@ int kernctl_get_current_timestamp(int fd, uint64_t *ts);
 int kernctl_get_sequence_number(int fd, uint64_t *seq);
 int kernctl_get_instance_id(int fd, uint64_t *seq);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _LTTNG_KERNEL_CTL_H */
This page took 0.023548 seconds and 4 git commands to generate.