Introduce firing policy object
[lttng-tools.git] / include / lttng / action / firing-policy-internal.h
diff --git a/include/lttng/action/firing-policy-internal.h b/include/lttng/action/firing-policy-internal.h
new file mode 100644 (file)
index 0000000..0fd62ee
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2021 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
+ *
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ */
+
+#ifndef LTTNG_FIRING_POLICY_INTERNAL_H
+#define LTTNG_FIRING_POLICY_INTERNAL_H
+
+#include <common/macros.h>
+#include <lttng/action/firing-policy.h>
+#include <common/payload-view.h>
+#include <stdbool.h>
+
+LTTNG_HIDDEN
+int lttng_firing_policy_serialize(struct lttng_firing_policy *firing_policy,
+               struct lttng_payload *buf);
+
+LTTNG_HIDDEN
+ssize_t lttng_firing_policy_create_from_payload(struct lttng_payload_view *view,
+               struct lttng_firing_policy **firing_policy);
+
+LTTNG_HIDDEN
+bool lttng_firing_policy_is_equal(const struct lttng_firing_policy *a,
+               const struct lttng_firing_policy *b);
+
+LTTNG_HIDDEN
+const char *lttng_firing_policy_type_string(
+               enum lttng_firing_policy_type firing_policy_type);
+
+LTTNG_HIDDEN
+struct lttng_firing_policy *lttng_firing_policy_copy(
+               const struct lttng_firing_policy *source);
+
+#endif /* LTTNG_FIRING_POLICY */
This page took 0.024442 seconds and 4 git commands to generate.