docs: Add supported versions and fix-backport policy
[lttng-tools.git] / src / common / snapshot.hpp
CommitLineData
b30fa191
JR
1/*
2 * Copyright (C) 2020 Simon Marchi <simon.marchi@efficios.com>
3 *
c922647d 4 * SPDX-License-Identifier: LGPL-2.1-only
b30fa191
JR
5 *
6 */
7
8#ifndef COMMON_SNAPSHOT_H
9#define COMMON_SNAPSHOT_H
10
13d03b1e 11#include <common/error.hpp>
c9e313bc 12#include <common/macros.hpp>
b30fa191
JR
13
14#include <stdbool.h>
46c97aee 15#include <sys/types.h>
b30fa191 16
757c48a2
SM
17struct lttng_payload_view;
18struct lttng_payload;
b30fa191 19struct lttng_snapshot_output;
6a751b95 20struct mi_writer;
b30fa191 21
b30fa191
JR
22bool lttng_snapshot_output_validate(const struct lttng_snapshot_output *output);
23
28f23191
JG
24bool lttng_snapshot_output_is_equal(const struct lttng_snapshot_output *a,
25 const struct lttng_snapshot_output *b);
b30fa191 26
28f23191
JG
27int lttng_snapshot_output_serialize(const struct lttng_snapshot_output *output,
28 struct lttng_payload *payload);
b30fa191 29
28f23191
JG
30ssize_t lttng_snapshot_output_create_from_payload(struct lttng_payload_view *view,
31 struct lttng_snapshot_output **output_p);
b30fa191 32
28f23191
JG
33enum lttng_error_code lttng_snapshot_output_mi_serialize(const struct lttng_snapshot_output *output,
34 struct mi_writer *writer);
6a751b95 35
b30fa191 36#endif /* COMMON_SNAPSHOT_H */
This page took 0.057666 seconds and 4 git commands to generate.