-/* Create an error query targetting an action object. */
-extern struct lttng_error_query *lttng_error_query_action_create(
+/* Create an error query targetting a trigger's condition object. */
+LTTNG_EXPORT extern struct lttng_error_query *lttng_error_query_condition_create(
+ const struct lttng_trigger *trigger);
+
+/*
+ * Create an error query targetting an action object.
+ *
+ * `action_path` is copied internally. The root of the `action_path` is the
+ * action of `trigger`.
+ */
+LTTNG_EXPORT extern struct lttng_error_query *lttng_error_query_action_create(