Decouple `struct lttng_event` from filter code
[lttng-ust.git] / liblttng-ust / ust-events-internal.h
index f93305ed057274e82dc479251a9637717438362d..649fd21133f1ce7e197e91883945ad1484dd7806 100644 (file)
@@ -44,6 +44,26 @@ struct lttng_event_enabler {
        struct lttng_ctx *ctx;
 };
 
+struct lttng_ust_filter_bytecode_node {
+       struct cds_list_head node;
+       struct lttng_enabler *enabler;
+       /*
+        * struct lttng_ust_filter_bytecode has var. sized array, must
+        * be last field.
+        */
+       struct lttng_ust_filter_bytecode bc;
+};
+
+struct lttng_ust_excluder_node {
+       struct cds_list_head node;
+       struct lttng_enabler *enabler;
+       /*
+        * struct lttng_ust_event_exclusion had variable sized array,
+        * must be last field.
+        */
+       struct lttng_ust_event_exclusion excluder;
+};
+
 static inline
 struct lttng_enabler *lttng_event_enabler_as_enabler(
                struct lttng_event_enabler *event_enabler)
@@ -116,7 +136,9 @@ int lttng_event_enabler_attach_exclusion(struct lttng_event_enabler *enabler,
  * each is linked to the provided event.
  */
 LTTNG_HIDDEN
-void lttng_event_enabler_link_bytecode(struct lttng_event *event,
-               struct lttng_event_enabler *enabler);
+void lttng_enabler_link_bytecode(const struct lttng_event_desc *event_desc,
+               struct lttng_ctx **ctx,
+               struct cds_list_head *bytecode_runtime_head,
+               struct lttng_enabler *enabler);
 
 #endif /* _LTTNG_UST_EVENTS_INTERNAL_H */
This page took 0.023557 seconds and 4 git commands to generate.