action-executor: consider action firing policy on action execution
[lttng-tools.git] / include / lttng / action / firing-policy-internal.h
CommitLineData
347f2c91
JR
1/*
2 * Copyright (C) 2021 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_FIRING_POLICY_INTERNAL_H
9#define LTTNG_FIRING_POLICY_INTERNAL_H
10
11#include <common/macros.h>
12#include <lttng/action/firing-policy.h>
13#include <common/payload-view.h>
14#include <stdbool.h>
15
16LTTNG_HIDDEN
17int lttng_firing_policy_serialize(struct lttng_firing_policy *firing_policy,
18 struct lttng_payload *buf);
19
20LTTNG_HIDDEN
21ssize_t lttng_firing_policy_create_from_payload(struct lttng_payload_view *view,
22 struct lttng_firing_policy **firing_policy);
23
24LTTNG_HIDDEN
25bool lttng_firing_policy_is_equal(const struct lttng_firing_policy *a,
26 const struct lttng_firing_policy *b);
27
28LTTNG_HIDDEN
29const char *lttng_firing_policy_type_string(
30 enum lttng_firing_policy_type firing_policy_type);
31
32LTTNG_HIDDEN
33struct lttng_firing_policy *lttng_firing_policy_copy(
34 const struct lttng_firing_policy *source);
35
2d57482c
JR
36LTTNG_HIDDEN
37bool lttng_firing_policy_should_execute(
38 const struct lttng_firing_policy *policy, uint64_t counter);
39
347f2c91 40#endif /* LTTNG_FIRING_POLICY */
This page took 0.023746 seconds and 4 git commands to generate.