#include <stdio.h>
#include <stdint.h>
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
#define printf_debug(fmt, args...) \
do { \
if (filter_parser_debug) \
enum node_type type;
union {
struct {
+ /* Avoid -Wextern-c-compat warning with clang++. */
+ char unused;
} unknown;
struct {
struct filter_node *child;
struct filter_ast *ast;
struct cds_list_head allocated_strings;
struct ir_op *ir_root;
- struct lttng_filter_bytecode_alloc *bytecode;
- struct lttng_filter_bytecode_alloc *bytecode_reloc;
+ struct lttng_bytecode_alloc *bytecode;
+ struct lttng_bytecode_alloc *bytecode_reloc;
};
struct filter_parser_ctx *filter_parser_ctx_alloc(FILE *input);
int filter_visitor_ir_normalize_glob_patterns(struct filter_parser_ctx *ctx);
int filter_visitor_ir_validate_globbing(struct filter_parser_ctx *ctx);
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* _FILTER_AST_H */