X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.h;h=c2fa6408bd53c4bfa623e2ad97f20ed66284f32f;hb=7fe0498a9173fca00dcd45a41847e629b70cd941;hp=e6805a983b706e4a31a414ab704fd65133fa59f0;hpb=b8e2fb80c105c5a8241f7b35744e4a86d7e4125c;p=lttng-tools.git diff --git a/src/common/kernel-ctl/kernel-ctl.h b/src/common/kernel-ctl/kernel-ctl.h index e6805a983..c2fa6408b 100644 --- a/src/common/kernel-ctl/kernel-ctl.h +++ b/src/common/kernel-ctl/kernel-ctl.h @@ -16,6 +16,10 @@ #include #include /* 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 */