X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ffilter.c;h=fc16f1d526abaef92f0bb97d3eb4ed19f7e69b2b;hp=f103d240f7fe6d9c14fd904d119ca934d6fde1ca;hb=7ca172c15891d4ff3f711dcc05f991fd2c094bc7;hpb=71a559f8ebee6ba681dfba864d6dace2efcf0440 diff --git a/src/common/filter.c b/src/common/filter.c index f103d240f..fc16f1d52 100644 --- a/src/common/filter.c +++ b/src/common/filter.c @@ -1,22 +1,8 @@ /* - * filter.c + * Copyright 2016 Jérémie Galarneau * - * LTTng filter bytecode utilities. + * SPDX-License-Identifier: LGPL-2.1-only * - * Copyright 2016 - Jérémie Galarneau - * - * This library 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. - * - * This library 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 library; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "filter.h" @@ -28,6 +14,7 @@ struct bytecode_symbol_iterator { size_t offset, len; }; +LTTNG_HIDDEN struct bytecode_symbol_iterator *bytecode_symbol_iterator_create( struct lttng_filter_bytecode *bytecode) { @@ -49,6 +36,7 @@ end: return it; } +LTTNG_HIDDEN int bytecode_symbol_iterator_next(struct bytecode_symbol_iterator *it) { int ret; @@ -66,6 +54,7 @@ end: return ret; } +LTTNG_HIDDEN int bytecode_symbol_iterator_get_type(struct bytecode_symbol_iterator *it) { int ret; @@ -80,6 +69,7 @@ end: return ret; } +LTTNG_HIDDEN const char *bytecode_symbol_iterator_get_name( struct bytecode_symbol_iterator *it) { @@ -94,6 +84,7 @@ end: return ret; } +LTTNG_HIDDEN void bytecode_symbol_iterator_destroy(struct bytecode_symbol_iterator *it) { free(it);