Rename C++ header files to .hpp
[lttng-tools.git] / include / lttng / action / rate-policy-internal.hpp
CommitLineData
7f4d5b07
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_RATE_POLICY_INTERNAL_H
9#define LTTNG_RATE_POLICY_INTERNAL_H
10
c9e313bc
SM
11#include <common/macros.hpp>
12#include <common/payload-view.hpp>
7f4d5b07 13#include <lttng/action/rate-policy.h>
740da7d5 14#include <lttng/lttng-error.h>
7f4d5b07
JR
15#include <stdbool.h>
16
488dbb60 17
6a751b95
JR
18struct mi_writer;
19
7f4d5b07
JR
20int lttng_rate_policy_serialize(struct lttng_rate_policy *rate_policy,
21 struct lttng_payload *buf);
22
7f4d5b07
JR
23ssize_t lttng_rate_policy_create_from_payload(struct lttng_payload_view *view,
24 struct lttng_rate_policy **rate_policy);
25
7f4d5b07
JR
26bool lttng_rate_policy_is_equal(const struct lttng_rate_policy *a,
27 const struct lttng_rate_policy *b);
28
7f4d5b07
JR
29const char *lttng_rate_policy_type_string(
30 enum lttng_rate_policy_type rate_policy_type);
31
7f4d5b07
JR
32struct lttng_rate_policy *lttng_rate_policy_copy(
33 const struct lttng_rate_policy *source);
34
7f4d5b07
JR
35bool lttng_rate_policy_should_execute(
36 const struct lttng_rate_policy *policy, uint64_t counter);
37
6a751b95
JR
38enum lttng_error_code lttng_rate_policy_mi_serialize(
39 const struct lttng_rate_policy *policy,
40 struct mi_writer *writer);
41
7f4d5b07 42#endif /* LTTNG_RATE_POLICY */
This page took 0.031657 seconds and 4 git commands to generate.