X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsnapshot.h;h=3edcf16ae7cc33b5faaae56b732aae387ae054cb;hb=b45a296973730d7564a110e16bf50964916be3b7;hp=58e855767ad0e33c17a9dba9831a026e4a527a6d;hpb=757c48a28258e64fe251b6803ccdba7898590d70;p=lttng-tools.git diff --git a/src/common/snapshot.h b/src/common/snapshot.h index 58e855767..3edcf16ae 100644 --- a/src/common/snapshot.h +++ b/src/common/snapshot.h @@ -11,10 +11,12 @@ #include #include +#include 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); @@ -34,4 +36,9 @@ 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 */