X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Fsnapshot.h;h=024364dfdec863e66fe64e1829ad85faa4aa5758;hb=edbac916fd984b0b50dc3f7cc352a94cb7f24287;hp=df02adaf917156c4a242f783909e1e172ee0dd73;hpb=46c97aee24af52a0ec2e1857a57a79815a534668;p=lttng-tools.git diff --git a/src/common/snapshot.h b/src/common/snapshot.h index df02adaf9..024364dfd 100644 --- a/src/common/snapshot.h +++ b/src/common/snapshot.h @@ -1,7 +1,7 @@ /* * Copyright (C) 2020 Simon Marchi * - * SPDX-License-Identifier: GPL-2.0-only + * SPDX-License-Identifier: LGPL-2.1-only * */ @@ -16,6 +16,7 @@ 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); @@ -35,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 */