SoW-2019-0002: Dynamic Snapshot
[lttng-tools.git] / src / common / snapshot.h
1 #ifndef COMMON_SNAPSHOT_H
2 #define COMMON_SNAPSHOT_H
3
4 /*
5 * Copyright (C) 2020 - EfficiOS, Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License, version 2 only,
9 * as published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #include "common/macros.h"
22
23 #include <stdbool.h>
24
25 struct lttng_buffer_view;
26 struct lttng_dynamic_buffer;
27 struct lttng_snapshot_output;
28
29 LTTNG_HIDDEN
30 bool lttng_snapshot_output_validate(const struct lttng_snapshot_output *output);
31
32 LTTNG_HIDDEN
33 bool lttng_snapshot_output_is_equal(
34 const struct lttng_snapshot_output *a,
35 const struct lttng_snapshot_output *b);
36
37 LTTNG_HIDDEN
38 int lttng_snapshot_output_serialize(
39 const struct lttng_snapshot_output *output,
40 struct lttng_dynamic_buffer *buf);
41
42 LTTNG_HIDDEN
43 ssize_t lttng_snapshot_output_create_from_buffer(
44 const struct lttng_buffer_view *view,
45 struct lttng_snapshot_output **output_p);
46
47 #endif /* COMMON_SNAPSHOT_H */
This page took 0.030855 seconds and 5 git commands to generate.