X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Ftrigger%2Ftrigger-internal.h;h=6fba6668491d71dd95f9f706a818e7e915c76d1e;hb=94dbd8e4ed88cd56829159e1fef374a16fddd593;hp=f16b68d00fd88412af0e649e02aef3447b434c11;hpb=9c374932629a1c25927dad13fce02ba1c4892cf7;p=lttng-tools.git diff --git a/include/lttng/trigger/trigger-internal.h b/include/lttng/trigger/trigger-internal.h index f16b68d00..6fba66684 100644 --- a/include/lttng/trigger/trigger-internal.h +++ b/include/lttng/trigger/trigger-internal.h @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include #include @@ -190,6 +190,12 @@ enum lttng_error_code lttng_trigger_generate_bytecode( 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); @@ -226,4 +232,14 @@ void lttng_trigger_lock(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 */