X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsnapshot.h;h=3edcf16ae7cc33b5faaae56b732aae387ae054cb;hb=37ccf8ecee70257a97ab6939e5dcb0112826f409;hp=95a63e13b42e0d1995ef9b70e6ac99107a41b77b;hpb=b30fa1919a1e0274b8d4734acb8cb54753808609;p=lttng-tools.git diff --git a/src/common/snapshot.h b/src/common/snapshot.h index 95a63e13b..3edcf16ae 100644 --- a/src/common/snapshot.h +++ b/src/common/snapshot.h @@ -11,10 +11,12 @@ #include #include +#include -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); @@ -27,11 +29,16 @@ bool lttng_snapshot_output_is_equal( 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); +LTTNG_HIDDEN +enum lttng_error_code lttng_snapshot_output_mi_serialize( + const struct lttng_snapshot_output *output, + struct mi_writer *writer); + #endif /* COMMON_SNAPSHOT_H */