SoW-2019-0002: Dynamic Snapshot
[lttng-tools.git] / src / common / snapshot.h
CommitLineData
1831ae68
FD
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
25struct lttng_buffer_view;
26struct lttng_dynamic_buffer;
27struct lttng_snapshot_output;
28
29LTTNG_HIDDEN
30bool lttng_snapshot_output_validate(const struct lttng_snapshot_output *output);
31
32LTTNG_HIDDEN
33bool lttng_snapshot_output_is_equal(
34 const struct lttng_snapshot_output *a,
35 const struct lttng_snapshot_output *b);
36
37LTTNG_HIDDEN
38int lttng_snapshot_output_serialize(
39 const struct lttng_snapshot_output *output,
40 struct lttng_dynamic_buffer *buf);
41
42LTTNG_HIDDEN
43ssize_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.024724 seconds and 5 git commands to generate.