X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fsnapshot-internal.h;h=8012a1e4ea58303456f4d6c23fb0e624e3f7278f;hp=a14564b3b03c4bc9a1ccd195f7fbce336a0b9f12;hb=refs%2Fheads%2Fsow-2019-0002-rev1;hpb=da3c9ec137aaec74635ca1f5584040c20b1d3d7b diff --git a/include/lttng/snapshot-internal.h b/include/lttng/snapshot-internal.h index a14564b3b..8012a1e4e 100644 --- a/include/lttng/snapshot-internal.h +++ b/include/lttng/snapshot-internal.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2013 - David Goulet + * Copyright (C) 2013 David Goulet * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License, version 2.1 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: LGPL-2.1-only * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef LTTNG_SNAPSHOT_INTERNAL_ABI_H @@ -20,6 +10,7 @@ #include #include +#include /* * Object used for the snapshot API. This is opaque to the public library. @@ -37,7 +28,7 @@ struct lttng_snapshot_output { */ uint64_t max_size; /* Name of the output so it can be recognized easily when listing them. */ - char name[NAME_MAX]; + char name[LTTNG_NAME_MAX]; /* Destination of the output. See lttng(1) for URL format. */ char ctrl_url[PATH_MAX]; /* Destination of the output. See lttng(1) for URL format. */ @@ -59,7 +50,7 @@ struct lttng_snapshot_output_list { size_t count; /* - * Containes snapshot output object. + * Contains snapshot output object. */ struct lttng_snapshot_output *array; };