action-executor: consider action firing policy on action execution
[lttng-tools.git] / src / common / actions / notify.c
index 85029a5e25908665396dca4770fd135e399c6018..3ce1b00f901f332ecd58a7ee4f8db77c2b95329e 100644 (file)
@@ -73,6 +73,16 @@ bool lttng_action_notify_is_equal(const struct lttng_action *a,
        return lttng_firing_policy_is_equal(_a->policy, _b->policy);
 }
 
+static const struct lttng_firing_policy *
+lttng_action_notify_internal_get_firing_policy(
+               const struct lttng_action *action)
+{
+       const struct lttng_action_notify *_action;
+       _action = action_notify_from_action_const(action);
+
+       return _action->policy;
+}
+
 struct lttng_action *lttng_action_notify_create(void)
 {
        struct lttng_firing_policy *policy = NULL;
@@ -93,7 +103,8 @@ struct lttng_action *lttng_action_notify_create(void)
        lttng_action_init(&notify->parent, LTTNG_ACTION_TYPE_NOTIFY, NULL,
                        lttng_action_notify_serialize,
                        lttng_action_notify_is_equal,
-                       lttng_action_notify_destroy);
+                       lttng_action_notify_destroy,
+                       lttng_action_notify_internal_get_firing_policy);
 
        notify->policy = policy;
        policy = NULL;
This page took 0.022893 seconds and 4 git commands to generate.