Move firing policy from lttng_trigger to lttng_action
[lttng-tools.git] / include / lttng / trigger / trigger-internal.h
index 59fe771aa32ef196ef3e89af5c87466dadf5cf21..c5ee9c64b4c1db9642251417fa812f3e18a9a68d 100644 (file)
@@ -30,11 +30,6 @@ struct lttng_trigger {
        char *name;
        /* For now only the uid portion of the credentials is used. */
        struct lttng_credentials creds;
-       struct {
-               enum lttng_trigger_firing_policy type;
-               uint64_t threshold;
-               uint64_t current_count;
-       } firing_policy;
        /*
         * Internal use only.
         * The unique token passed to the tracer to identify an event-rule
@@ -60,10 +55,6 @@ struct lttng_trigger_comm {
        uint32_t length;
        /* Includes '\0' terminator. */
        uint32_t name_length;
-       /* Firing policy. */
-       /* Maps to enum lttng_trigger_firing_policy. */
-       uint8_t firing_policy_type;
-       uint64_t firing_policy_threshold;
        /* A null-terminated name, a condition, and an action follow. */
        char payload[];
 } LTTNG_PACKED;
@@ -162,20 +153,6 @@ LTTNG_HIDDEN
 void lttng_trigger_set_credentials(struct lttng_trigger *trigger,
                const struct lttng_credentials *creds);
 
-
-/*
- * Fire the trigger.
- * Increments the occurrence count.
- */
-LTTNG_HIDDEN
-void lttng_trigger_fire(struct lttng_trigger *trigger);
-
-/*
- * Check if the trigger would fire.
- */
-LTTNG_HIDDEN
-bool lttng_trigger_should_fire(const struct lttng_trigger *trigger);
-
 /*
  * Return the type of any underlying domain restriction. If no particular
  * requirement is present, returns LTTNG_DOMAIN_NONE.
This page took 0.023397 seconds and 4 git commands to generate.