X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsnapshot.cpp;h=191f484c255b0d5a9669737b07e6fff8b3c535cb;hb=57b90af7b1977684094706818e387433f50b7d48;hp=960240b2c4a1144830109a97fe5389473c19fe43;hpb=a6bc4ca9d659caf016ef932fcd944029737ac57c;p=lttng-tools.git diff --git a/src/common/snapshot.cpp b/src/common/snapshot.cpp index 960240b2c..191f484c2 100644 --- a/src/common/snapshot.cpp +++ b/src/common/snapshot.cpp @@ -1,16 +1,16 @@ /* * Copyright (C) 2020 Simon Marchi * - * SPDX-License-Identifier: GPL-2.0-only + * SPDX-License-Identifier: LGPL-2.1-only * */ -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include @@ -77,6 +77,7 @@ end: return equal; } +namespace { /* * This is essentially the same as `struct lttng_snapshot_output`, but packed. */ @@ -87,6 +88,7 @@ struct lttng_snapshot_output_comm { char ctrl_url[PATH_MAX]; char data_url[PATH_MAX]; } LTTNG_PACKED; +} /* namespace */ int lttng_snapshot_output_serialize( const struct lttng_snapshot_output *output,