lttng-ctl: separate support of named/unnamed trigger registration
[lttng-tools.git] / include / lttng / trigger / trigger-internal.h
index 6fba6668491d71dd95f9f706a818e7e915c76d1e..c58787ceb2cfb506a7280e02ccf6b6425783ea19 100644 (file)
@@ -242,4 +242,19 @@ enum lttng_trigger_status lttng_trigger_add_action_error_query_results(
                struct lttng_trigger *trigger,
                struct lttng_error_query_results *results);
 
+/*
+ * Set the trigger name.
+ *
+ * A name is optional.
+ * A name will be assigned on trigger registration if no name is set.
+ *
+ * The name is copied.
+ *
+ * Return LTTNG_TRIGGER_STATUS_OK on success, LTTNG_TRIGGER_STATUS_INVALID
+ * if invalid parameters are passed.
+ */
+LTTNG_HIDDEN
+enum lttng_trigger_status lttng_trigger_set_name(
+               struct lttng_trigger *trigger, const char *name);
+
 #endif /* LTTNG_TRIGGER_INTERNAL_H */
This page took 0.023022 seconds and 4 git commands to generate.