X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ftrace-chunk.h;h=4ab0b11c5c405d31d52c46392b2618b5e8b42069;hp=8b43a25f7487f9ba35cbfa66de55dfe9e096f75b;hb=cfb1c9bcab7801380b6ffbab9e505b861072254c;hpb=8bb66c3cd60938352927ee865759433387324250 diff --git a/src/common/trace-chunk.h b/src/common/trace-chunk.h index 8b43a25f7..4ab0b11c5 100644 --- a/src/common/trace-chunk.h +++ b/src/common/trace-chunk.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2019 - Jérémie Galarneau + * Copyright (C) 2019 Jérémie Galarneau * - * This program 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 program 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 program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef LTTNG_TRACE_CHUNK_H @@ -65,7 +55,7 @@ struct lttng_trace_chunk; struct fd_tracker; enum lttng_trace_chunk_status { - LTTNG_TRACE_CHUNK_STATUS_OK, + LTTNG_TRACE_CHUNK_STATUS_OK, LTTNG_TRACE_CHUNK_STATUS_NONE, LTTNG_TRACE_CHUNK_STATUS_INVALID_ARGUMENT, LTTNG_TRACE_CHUNK_STATUS_INVALID_OPERATION, @@ -210,6 +200,10 @@ LTTNG_HIDDEN const char *lttng_trace_chunk_command_type_get_name( enum lttng_trace_chunk_command_type command); +LTTNG_HIDDEN +bool lttng_trace_chunk_ids_equal(const struct lttng_trace_chunk *chunk_a, + const struct lttng_trace_chunk *chunk_b); + /* Returns true on success. */ LTTNG_HIDDEN bool lttng_trace_chunk_get(struct lttng_trace_chunk *chunk);