condition: implement lttng_condition_event_rule_generate_capture_descriptor_bytecode
[lttng-tools.git] / include / lttng / condition / event-rule-internal.h
index 55b61949a0406688f48ec9ddf4e6e4d3115a689e..1f039c3475f8c5eec77084eee754d70e700aa1f1 100644 (file)
 #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;
 
-       /* Array of `struct lttng_event_expr *`. */
+       /* Array of `struct lttng_capture_descriptor *`. */
        struct lttng_dynamic_pointer_array capture_descriptors;
 };
 
@@ -34,7 +39,6 @@ struct lttng_evaluation_event_rule_comm {
        char payload[];
 } LTTNG_PACKED;
 
-
 LTTNG_HIDDEN
 ssize_t lttng_condition_event_rule_create_from_payload(
                struct lttng_payload_view *view,
@@ -55,4 +59,9 @@ ssize_t lttng_evaluation_event_rule_create_from_payload(
                struct lttng_payload_view *view,
                struct lttng_evaluation **_evaluation);
 
+LTTNG_HIDDEN
+enum lttng_error_code
+lttng_condition_event_rule_generate_capture_descriptor_bytecode(
+               struct lttng_condition *condition);
+
 #endif /* LTTNG_CONDITION_EVENT_RULE_INTERNAL_H */
This page took 0.037147 seconds and 4 git commands to generate.