X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.h;fp=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.h;h=c2fa6408bd53c4bfa623e2ad97f20ed66284f32f;hp=e6805a983b706e4a31a414ab704fd65133fa59f0;hb=7966af5763c4aaca39df9bbfa9277ff15715c720;hpb=3a5f70173aa04d11ccb22694d5d31a702cad33ab 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 */