Relicence all source and header files included in LGPL code
[lttng-tools.git] / src / common / snapshot.h
... / ...
CommitLineData
1/*
2 * Copyright (C) 2020 Simon Marchi <simon.marchi@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef COMMON_SNAPSHOT_H
9#define COMMON_SNAPSHOT_H
10
11#include <common/macros.h>
12
13#include <stdbool.h>
14#include <sys/types.h>
15
16struct lttng_payload_view;
17struct lttng_payload;
18struct lttng_snapshot_output;
19struct mi_writer;
20
21bool lttng_snapshot_output_validate(const struct lttng_snapshot_output *output);
22
23bool lttng_snapshot_output_is_equal(
24 const struct lttng_snapshot_output *a,
25 const struct lttng_snapshot_output *b);
26
27int lttng_snapshot_output_serialize(
28 const struct lttng_snapshot_output *output,
29 struct lttng_payload *payload);
30
31ssize_t lttng_snapshot_output_create_from_payload(
32 struct lttng_payload_view *view,
33 struct lttng_snapshot_output **output_p);
34
35enum lttng_error_code lttng_snapshot_output_mi_serialize(
36 const struct lttng_snapshot_output *output,
37 struct mi_writer *writer);
38
39#endif /* COMMON_SNAPSHOT_H */
This page took 0.02195 seconds and 4 git commands to generate.