condition: introduce lttng_capture_descriptor struct
[lttng-tools.git] / include / lttng / condition / event-rule-internal.h
index a4e02c50919aabe76843a43474fde019db58f32e..241ec571df77316b8827b6619e0c736ed2d00fec 100644 (file)
 #include <common/buffer-view.h>
 #include <common/macros.h>
 #include <lttng/condition/evaluation-internal.h>
+#include <common/dynamic-array.h>
+
+struct lttng_capture_descriptor {
+       struct lttng_event_expr *event_expression;
+       struct lttng_bytecode *bytecode;
+};
 
 struct lttng_condition_event_rule {
        struct lttng_condition parent;
        struct lttng_event_rule *rule;
-};
 
-struct lttng_condition_event_rule_comm {
-       /* length excludes the header's length. */
-       uint32_t event_rule_length;
-       /* Event rule follows. */
-       char payload[];
-} LTTNG_PACKED;
+       /* Array of `struct lttng_capture_descriptor *`. */
+       struct lttng_dynamic_pointer_array capture_descriptors;
+};
 
 struct lttng_evaluation_event_rule {
        struct lttng_evaluation parent;
This page took 0.024569 seconds and 4 git commands to generate.