X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ffilter.h;h=f5dcdf319f8f6fdfd26a82210e9d8e7c0da46105;hb=3afa94aeca5a0daae40fd7b6cc96b7e4c150c7d8;hp=051177a0ef9a62e8638b47ee676249aae1f36283;hpb=71a559f8ebee6ba681dfba864d6dace2efcf0440;p=lttng-tools.git diff --git a/src/common/filter.h b/src/common/filter.h index 051177a0e..f5dcdf319 100644 --- a/src/common/filter.h +++ b/src/common/filter.h @@ -1,18 +1,8 @@ /* - * Copyright 2016 - Jérémie Galarneau + * Copyright (C) 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_FILTER_H @@ -20,6 +10,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + struct bytecode_symbol_iterator; /* @@ -27,7 +21,7 @@ struct bytecode_symbol_iterator; * first element after creation. */ struct bytecode_symbol_iterator *bytecode_symbol_iterator_create( - struct lttng_filter_bytecode *bytecode); + struct lttng_bytecode *bytecode); /* * Advance iterator of one element. @@ -43,4 +37,8 @@ const char *bytecode_symbol_iterator_get_name( void bytecode_symbol_iterator_destroy(struct bytecode_symbol_iterator *it); +#ifdef __cplusplus +} +#endif + #endif /* LTTNG_COMMON_FILTER_H */