Commit | Line | Data |
---|---|---|
b30fa191 JR |
1 | /* |
2 | * Copyright (C) 2020 Simon Marchi <simon.marchi@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: GPL-2.0-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> | |
46c97aee | 14 | #include <sys/types.h> |
b30fa191 | 15 | |
757c48a2 SM |
16 | struct lttng_payload_view; |
17 | struct lttng_payload; | |
b30fa191 | 18 | struct lttng_snapshot_output; |
6a751b95 | 19 | struct mi_writer; |
b30fa191 | 20 | |
b30fa191 JR |
21 | bool lttng_snapshot_output_validate(const struct lttng_snapshot_output *output); |
22 | ||
b30fa191 JR |
23 | bool lttng_snapshot_output_is_equal( |
24 | const struct lttng_snapshot_output *a, | |
25 | const struct lttng_snapshot_output *b); | |
26 | ||
b30fa191 JR |
27 | int lttng_snapshot_output_serialize( |
28 | const struct lttng_snapshot_output *output, | |
757c48a2 | 29 | struct lttng_payload *payload); |
b30fa191 | 30 | |
757c48a2 SM |
31 | ssize_t lttng_snapshot_output_create_from_payload( |
32 | struct lttng_payload_view *view, | |
b30fa191 JR |
33 | struct lttng_snapshot_output **output_p); |
34 | ||
6a751b95 JR |
35 | enum lttng_error_code lttng_snapshot_output_mi_serialize( |
36 | const struct lttng_snapshot_output *output, | |
37 | struct mi_writer *writer); | |
38 | ||
b30fa191 | 39 | #endif /* COMMON_SNAPSHOT_H */ |