2 * Copyright (C) 2020 Simon Marchi <simon.marchi@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
8 #ifndef COMMON_SNAPSHOT_H
9 #define COMMON_SNAPSHOT_H
11 #include <common/macros.h>
14 #include <sys/types.h>
16 struct lttng_payload_view
;
18 struct lttng_snapshot_output
;
22 bool lttng_snapshot_output_validate(const struct lttng_snapshot_output
*output
);
25 bool lttng_snapshot_output_is_equal(
26 const struct lttng_snapshot_output
*a
,
27 const struct lttng_snapshot_output
*b
);
30 int lttng_snapshot_output_serialize(
31 const struct lttng_snapshot_output
*output
,
32 struct lttng_payload
*payload
);
35 ssize_t
lttng_snapshot_output_create_from_payload(
36 struct lttng_payload_view
*view
,
37 struct lttng_snapshot_output
**output_p
);
40 enum lttng_error_code
lttng_snapshot_output_mi_serialize(
41 const struct lttng_snapshot_output
*output
,
42 struct mi_writer
*writer
);
44 #endif /* COMMON_SNAPSHOT_H */
This page took 0.032066 seconds and 4 git commands to generate.