liblttng-ctl: add facilities for lttng_snapshot_output object
[lttng-tools.git] / src / common / snapshot.h
diff --git a/src/common/snapshot.h b/src/common/snapshot.h
new file mode 100644 (file)
index 0000000..95a63e1
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2020 Simon Marchi <simon.marchi@efficios.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-only
+ *
+ */
+
+#ifndef COMMON_SNAPSHOT_H
+#define COMMON_SNAPSHOT_H
+
+#include <common/macros.h>
+
+#include <stdbool.h>
+
+struct lttng_buffer_view;
+struct lttng_dynamic_buffer;
+struct lttng_snapshot_output;
+
+LTTNG_HIDDEN
+bool lttng_snapshot_output_validate(const struct lttng_snapshot_output *output);
+
+LTTNG_HIDDEN
+bool lttng_snapshot_output_is_equal(
+               const struct lttng_snapshot_output *a,
+               const struct lttng_snapshot_output *b);
+
+LTTNG_HIDDEN
+int lttng_snapshot_output_serialize(
+               const struct lttng_snapshot_output *output,
+               struct lttng_dynamic_buffer *buf);
+
+LTTNG_HIDDEN
+ssize_t lttng_snapshot_output_create_from_buffer(
+               const struct lttng_buffer_view *view,
+               struct lttng_snapshot_output **output_p);
+
+#endif /* COMMON_SNAPSHOT_H */
This page took 0.023143 seconds and 4 git commands to generate.