Add support for "full" star globbing patterns in event names and filters
[lttng-tools.git] / src / lib / lttng-ctl / filter / filter-ir.h
index 5c3fa4ab52f97332095bc9923fde9c1c188a0771..10f339e6be931f6af0ca9d24683b10fad42490e6 100644 (file)
@@ -56,13 +56,27 @@ enum ir_side {
        IR_RIGHT,
 };
 
+enum ir_load_string_type {
+       /* Plain, no globbing at all: `hello world`. */
+       IR_LOAD_STRING_TYPE_PLAIN = 0,
+
+       /* Star at the end only: `hello *`. */
+       IR_LOAD_STRING_TYPE_GLOB_STAR_END,
+
+       /* At least one star, anywhere, but not at the end only: `he*wor*`. */
+       IR_LOAD_STRING_TYPE_GLOB_STAR,
+};
+
 struct ir_op_root {
        struct ir_op *child;
 };
 
 struct ir_op_load {
        union {
-               char *string;
+               struct {
+                       enum ir_load_string_type type;
+                       char *value;
+               } string;
                int64_t num;
                double flt;
                char *ref;
This page took 0.024744 seconds and 5 git commands to generate.