| 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> |
| 14 | |
| 15 | struct lttng_buffer_view; |
| 16 | struct lttng_dynamic_buffer; |
| 17 | struct lttng_snapshot_output; |
| 18 | |
| 19 | LTTNG_HIDDEN |
| 20 | bool lttng_snapshot_output_validate(const struct lttng_snapshot_output *output); |
| 21 | |
| 22 | LTTNG_HIDDEN |
| 23 | bool lttng_snapshot_output_is_equal( |
| 24 | const struct lttng_snapshot_output *a, |
| 25 | const struct lttng_snapshot_output *b); |
| 26 | |
| 27 | LTTNG_HIDDEN |
| 28 | int lttng_snapshot_output_serialize( |
| 29 | const struct lttng_snapshot_output *output, |
| 30 | struct lttng_dynamic_buffer *buf); |
| 31 | |
| 32 | LTTNG_HIDDEN |
| 33 | ssize_t lttng_snapshot_output_create_from_buffer( |
| 34 | const struct lttng_buffer_view *view, |
| 35 | struct lttng_snapshot_output **output_p); |
| 36 | |
| 37 | #endif /* COMMON_SNAPSHOT_H */ |