X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Ffilter%2Ffilter-ir.h;h=10f339e6be931f6af0ca9d24683b10fad42490e6;hb=75acbe19887436248352558828220eb88731d916;hp=5c3fa4ab52f97332095bc9923fde9c1c188a0771;hpb=586dc72f727912b4aa381789c418e062bce89d08;p=lttng-tools.git diff --git a/src/lib/lttng-ctl/filter/filter-ir.h b/src/lib/lttng-ctl/filter/filter-ir.h index 5c3fa4ab5..10f339e6b 100644 --- a/src/lib/lttng-ctl/filter/filter-ir.h +++ b/src/lib/lttng-ctl/filter/filter-ir.h @@ -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;