X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ftrace-chunk-registry.h;h=f61e560808486c37b1640d3ed04bce0a6cf48555;hb=3afa94aeca5a0daae40fd7b6cc96b7e4c150c7d8;hp=afe942ba913d46d19f32f3ca1dc1d175a8fabad3;hpb=6b584c2ece62c620a86cf438bb358a9da7962b7e;p=lttng-tools.git diff --git a/src/common/trace-chunk-registry.h b/src/common/trace-chunk-registry.h index afe942ba9..f61e56080 100644 --- a/src/common/trace-chunk-registry.h +++ b/src/common/trace-chunk-registry.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_REGISTRY_H @@ -24,6 +14,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + struct lttng_trace_chunk_registry; /* @@ -41,7 +35,6 @@ struct lttng_trace_chunk_registry; * * Note that a trace chunk registry may only be accessed by an RCU thread. */ -LTTNG_HIDDEN struct lttng_trace_chunk_registry *lttng_trace_chunk_registry_create(void); /* @@ -49,7 +42,6 @@ struct lttng_trace_chunk_registry *lttng_trace_chunk_registry_create(void); * (i.e. all references to the trace chunks it contains must be released) before * it is destroyed. */ -LTTNG_HIDDEN void lttng_trace_chunk_registry_destroy( struct lttng_trace_chunk_registry *registry); @@ -66,7 +58,6 @@ void lttng_trace_chunk_registry_destroy( * * Returns an lttng_trace_chunk on success, NULL on error. */ -LTTNG_HIDDEN struct lttng_trace_chunk *lttng_trace_chunk_registry_publish_chunk( struct lttng_trace_chunk_registry *registry, uint64_t session_id, struct lttng_trace_chunk *chunk); @@ -77,7 +68,6 @@ struct lttng_trace_chunk *lttng_trace_chunk_registry_publish_chunk( * * Returns an lttng_trace_chunk on success, NULL if the chunk does not exist. */ -LTTNG_HIDDEN struct lttng_trace_chunk * lttng_trace_chunk_registry_find_chunk( const struct lttng_trace_chunk_registry *registry, @@ -88,7 +78,6 @@ lttng_trace_chunk_registry_find_chunk( * * Returns 0 on success, a negative value on error. */ -LTTNG_HIDDEN int lttng_trace_chunk_registry_chunk_exists( const struct lttng_trace_chunk_registry *registry, uint64_t session_id, uint64_t chunk_id, bool *chunk_exists); @@ -99,14 +88,16 @@ int lttng_trace_chunk_registry_chunk_exists( * * Returns an lttng_trace_chunk on success, NULL if the chunk does not exist. */ -LTTNG_HIDDEN struct lttng_trace_chunk * lttng_trace_chunk_registry_find_anonymous_chunk( const struct lttng_trace_chunk_registry *registry, uint64_t session_id); -LTTNG_HIDDEN unsigned int lttng_trace_chunk_registry_put_each_chunk( - struct lttng_trace_chunk_registry *registry); + const struct lttng_trace_chunk_registry *registry); + +#ifdef __cplusplus +} +#endif #endif /* LTTNG_TRACE_CHUNK_REGISTRY_H */