X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcontext.h;h=b6755addacb4453325aa2b122587677fe9d40638;hb=3afa94aeca5a0daae40fd7b6cc96b7e4c150c7d8;hp=5552f4da5736c400c661142a2cc8f8fe285b10b9;hpb=71a559f8ebee6ba681dfba864d6dace2efcf0440;p=lttng-tools.git diff --git a/src/common/context.h b/src/common/context.h index 5552f4da5..b6755adda 100644 --- a/src/common/context.h +++ b/src/common/context.h @@ -1,23 +1,19 @@ /* - * Copyright 2016 - Jérémie Galarneau + * Copyright 2016 Jérémie Galarneau * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License, version 2 only, as - * published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-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 General Public License for - * more details. - * - * You should have received a copy of the GNU 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_COMMON_CONTEXT_H #define LTTNG_COMMON_CONTEXT_H +#include + +#ifdef __cplusplus +extern "C" { +#endif + /* * Parse string as an application context of the form * "$app.provider_name:context_name" and return the provider name and context @@ -32,4 +28,8 @@ int parse_application_context(const char *str, char **provider_name, char **ctx_name); +#ifdef __cplusplus +} +#endif + #endif /* LTTNG_COMMON_CONTEXT_H */