SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / src / common / filter.c
index f103d240f7fe6d9c14fd904d119ca934d6fde1ca..5d333375dd2e8c3f3e9ec4091916e74d3878ca7e 100644 (file)
@@ -1,22 +1,8 @@
 /*
- * filter.c
+ * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * LTTng filter bytecode utilities.
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
- * Copyright 2016 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
- * 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,8 +14,9 @@ struct bytecode_symbol_iterator {
        size_t offset, len;
 };
 
+LTTNG_HIDDEN
 struct bytecode_symbol_iterator *bytecode_symbol_iterator_create(
-               struct lttng_filter_bytecode *bytecode)
+               struct lttng_bytecode *bytecode)
 {
        struct bytecode_symbol_iterator *it = NULL;
 
@@ -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);
This page took 0.026102 seconds and 5 git commands to generate.