Implement support for brackets in filter expressions
[lttng-tools.git] / src / lib / lttng-ctl / filter / filter-ast.h
index 7f1883f29656ba1836699b11bc3178d02dfe7966..067624906d7ad5cd1fa8cc382c095dcd7e1f5387 100644 (file)
@@ -95,6 +95,7 @@ enum ast_link_type {
        AST_LINK_UNKNOWN = 0,
        AST_LINK_DOT,
        AST_LINK_RARROW,
+       AST_LINK_BRACKET,
 };
 
 struct filter_node {
@@ -133,8 +134,9 @@ struct filter_node {
                                 */
                                struct filter_node *child;
                        } u;
-                       /* linked dot/arrow chain */
+                       /* prev: linked dot/arrow chain (postfix expression) */
                        struct filter_node *prev;
+                       /* next: linked bracket chain (prefix expression) */
                        struct filter_node *next;
                } expression;
                struct {
@@ -187,5 +189,7 @@ void filter_bytecode_free(struct filter_parser_ctx *ctx);
 int filter_visitor_ir_check_binary_op_nesting(struct filter_parser_ctx *ctx);
 int filter_visitor_ir_check_binary_comparator(struct filter_parser_ctx *ctx);
 int filter_visitor_ir_validate_string(struct filter_parser_ctx *ctx);
+int filter_visitor_ir_normalize_glob_patterns(struct filter_parser_ctx *ctx);
+int filter_visitor_ir_validate_globbing(struct filter_parser_ctx *ctx);
 
 #endif /* _FILTER_AST_H */
This page took 0.023328 seconds and 4 git commands to generate.