X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcontext.h;h=036f2004dec13742dfbc194576bfbb5e9a69f402;hp=5552f4da5736c400c661142a2cc8f8fe285b10b9;hb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;hpb=71a559f8ebee6ba681dfba864d6dace2efcf0440 diff --git a/src/common/context.h b/src/common/context.h index 5552f4da5..036f2004d 100644 --- a/src/common/context.h +++ b/src/common/context.h @@ -1,23 +1,15 @@ /* - * 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 + /* * Parse string as an application context of the form * "$app.provider_name:context_name" and return the provider name and context @@ -29,6 +21,7 @@ * Returns 0 if the string is a valid application context, else a negative * value on error. */ +LTTNG_HIDDEN int parse_application_context(const char *str, char **provider_name, char **ctx_name);