#include <common/dynamic-array.h>
#include <common/macros.h>
#include <common/optional.h>
-#include <lttng/trigger/trigger.h>
+#include <lttng/lttng.h>
#include <pthread.h>
#include <stdbool.h>
#include <stdint.h>
struct lttng_trigger *trigger,
const struct lttng_credentials *creds);
+/*
+ * Note that the trigger object is not locked by "copy" as it is const and
+ * used with a number of 'const' triggers. If the trigger could be shared at
+ * the moment of the copy, it is the caller's responsability to lock it for
+ * the duration of the copy.
+ */
LTTNG_HIDDEN
struct lttng_trigger *lttng_trigger_copy(const struct lttng_trigger *trigger);
LTTNG_HIDDEN
void lttng_trigger_unlock(struct lttng_trigger *trigger);
+LTTNG_HIDDEN
+enum lttng_trigger_status lttng_trigger_add_error_results(
+ const struct lttng_trigger *trigger,
+ struct lttng_error_query_results *results);
+
+LTTNG_HIDDEN
+enum lttng_trigger_status lttng_trigger_add_action_error_query_results(
+ struct lttng_trigger *trigger,
+ struct lttng_error_query_results *results);
+
#endif /* LTTNG_TRIGGER_INTERNAL_H */