Commit | Line | Data |
---|---|---|
b30fa191 JR |
1 | /* |
2 | * Copyright (C) 2020 Simon Marchi <simon.marchi@efficios.com> | |
3 | * | |
395004a1 | 4 | * SPDX-License-Identifier: LGPL-2.1-only |
b30fa191 JR |
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; |
0f7c2963 | 19 | struct mi_writer; |
b30fa191 JR |
20 | |
21 | LTTNG_HIDDEN | |
22 | bool lttng_snapshot_output_validate(const struct lttng_snapshot_output *output); | |
23 | ||
24 | LTTNG_HIDDEN | |
25 | bool lttng_snapshot_output_is_equal( | |
26 | const struct lttng_snapshot_output *a, | |
27 | const struct lttng_snapshot_output *b); | |
28 | ||
29 | LTTNG_HIDDEN | |
30 | int lttng_snapshot_output_serialize( | |
31 | const struct lttng_snapshot_output *output, | |
757c48a2 | 32 | struct lttng_payload *payload); |
b30fa191 JR |
33 | |
34 | LTTNG_HIDDEN | |
757c48a2 SM |
35 | ssize_t lttng_snapshot_output_create_from_payload( |
36 | struct lttng_payload_view *view, | |
b30fa191 JR |
37 | struct lttng_snapshot_output **output_p); |
38 | ||
0f7c2963 JR |
39 | LTTNG_HIDDEN |
40 | enum lttng_error_code lttng_snapshot_output_mi_serialize( | |
41 | const struct lttng_snapshot_output *output, | |
42 | struct mi_writer *writer); | |
43 | ||
b30fa191 | 44 | #endif /* COMMON_SNAPSHOT_H */ |