/*
* 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/error.h>
-#include <common/mi-lttng.h>
-#include <common/payload-view.h>
-#include <common/payload.h>
-#include <common/snapshot.h>
-#include <lttng/snapshot-internal.h>
+#include <common/error.hpp>
+#include <common/mi-lttng.hpp>
+#include <common/payload-view.hpp>
+#include <common/payload.hpp>
+#include <common/snapshot.hpp>
+#include <lttng/snapshot-internal.hpp>
#include <lttng/snapshot.h>
#include <stdlib.h>
return equal;
}
+namespace {
/*
* This is essentially the same as `struct lttng_snapshot_output`, but packed.
*/
char ctrl_url[PATH_MAX];
char data_url[PATH_MAX];
} LTTNG_PACKED;
+} /* namespace */
int lttng_snapshot_output_serialize(
const struct lttng_snapshot_output *output,