Relicence all source and header files included in LGPL code
[lttng-tools.git] / src / common / snapshot.h
index 95a63e13b42e0d1995ef9b70e6ac99107a41b77b..56f35089954d0ccbf66554077b5a3c6c8ec5c548 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright (C) 2020 Simon Marchi <simon.marchi@efficios.com>
  *
- * SPDX-License-Identifier: GPL-2.0-only
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
  */
 
 #include <common/macros.h>
 
 #include <stdbool.h>
+#include <sys/types.h>
 
-struct lttng_buffer_view;
-struct lttng_dynamic_buffer;
+struct lttng_payload_view;
+struct lttng_payload;
 struct lttng_snapshot_output;
+struct mi_writer;
 
-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);
+               struct lttng_payload *payload);
 
-LTTNG_HIDDEN
-ssize_t lttng_snapshot_output_create_from_buffer(
-               const struct lttng_buffer_view *view,
+ssize_t lttng_snapshot_output_create_from_payload(
+               struct lttng_payload_view *view,
                struct lttng_snapshot_output **output_p);
 
+enum lttng_error_code lttng_snapshot_output_mi_serialize(
+               const struct lttng_snapshot_output *output,
+               struct mi_writer *writer);
+
 #endif /* COMMON_SNAPSHOT_H */
This page took 0.025048 seconds and 4 git commands to generate.