X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fbytecode%2Fbytecode.h;h=54ed7363ec493b6c0c2b14db940d2402edf6ccf4;hp=d7ef4aeddd27b8d581a691a5f842179f2ca16374;hb=7966af5763c4aaca39df9bbfa9277ff15715c720;hpb=3a5f70173aa04d11ccb22694d5d31a702cad33ab diff --git a/src/common/bytecode/bytecode.h b/src/common/bytecode/bytecode.h index d7ef4aedd..54ed7363e 100644 --- a/src/common/bytecode/bytecode.h +++ b/src/common/bytecode/bytecode.h @@ -13,6 +13,10 @@ #include "common/macros.h" #include "common/sessiond-comm/sessiond-comm.h" +#ifdef __cplusplus +extern "C" { +#endif + /* * offsets are absolute from start of bytecode. */ @@ -43,10 +47,6 @@ struct literal_double { double v; } LTTNG_PACKED; -struct literal_string { - char string[0]; -} LTTNG_PACKED; - enum bytecode_op { BYTECODE_OP_UNKNOWN = 0, @@ -262,4 +262,8 @@ unsigned int bytecode_get_len(struct lttng_bytecode *bytecode) return bytecode->len; } +#ifdef __cplusplus +} +#endif + #endif /* LTTNG_COMMON_BYTECODE_H */