trigger: generate and add tracer token on registration
[lttng-tools.git] / include / lttng / trigger / trigger-internal.h
index 20b1ff33aab687b499c8e92f68ef4a2e929e9934..df69f3d110a2c49fe970f80883f74f018cea0c37 100644 (file)
@@ -29,6 +29,12 @@ struct lttng_trigger {
        char *name;
        /* For now only the uid portion of the credentials is used. */
        struct lttng_credentials creds;
+       /*
+        * Internal use only.
+        * The unique token passed to the tracer to identify an event-rule
+        * notification.
+        */
+       LTTNG_OPTIONAL(uint64_t) tracer_token;
 };
 
 struct lttng_trigger_comm {
@@ -71,6 +77,13 @@ LTTNG_HIDDEN
 int lttng_trigger_assign_name(
                struct lttng_trigger *dst, const struct lttng_trigger *src);
 
+LTTNG_HIDDEN
+void lttng_trigger_set_tracer_token(
+               struct lttng_trigger *trigger, uint64_t token);
+
+LTTNG_HIDDEN
+uint64_t lttng_trigger_get_tracer_token(const struct lttng_trigger *trigger);
+
 LTTNG_HIDDEN
 int lttng_trigger_generate_name(struct lttng_trigger *trigger,
                uint64_t unique_id);
This page took 0.030822 seconds and 4 git commands to generate.