2 * Copyright (C) 2021 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_FIRING_POLICY_INTERNAL_H
9 #define LTTNG_FIRING_POLICY_INTERNAL_H
11 #include <common/macros.h>
12 #include <lttng/action/firing-policy.h>
13 #include <common/payload-view.h>
17 int lttng_firing_policy_serialize(struct lttng_firing_policy
*firing_policy
,
18 struct lttng_payload
*buf
);
21 ssize_t
lttng_firing_policy_create_from_payload(struct lttng_payload_view
*view
,
22 struct lttng_firing_policy
**firing_policy
);
25 bool lttng_firing_policy_is_equal(const struct lttng_firing_policy
*a
,
26 const struct lttng_firing_policy
*b
);
29 const char *lttng_firing_policy_type_string(
30 enum lttng_firing_policy_type firing_policy_type
);
33 struct lttng_firing_policy
*lttng_firing_policy_copy(
34 const struct lttng_firing_policy
*source
);
36 #endif /* LTTNG_FIRING_POLICY */