From: Jérémie Galarneau Date: Sat, 14 May 2016 21:01:16 +0000 (-0400) Subject: Hide bytecode symbol iterator API symbols X-Git-Tag: v2.8.0~125 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5eece14990592ea34b75d6c90adf316a97f1ff85;p=lttng-tools.git Hide bytecode symbol iterator API symbols Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/filter.c b/src/common/filter.c index f103d240f..dc1cdb0f1 100644 --- a/src/common/filter.c +++ b/src/common/filter.c @@ -28,6 +28,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 +50,7 @@ end: return it; } +LTTNG_HIDDEN int bytecode_symbol_iterator_next(struct bytecode_symbol_iterator *it) { int ret; @@ -66,6 +68,7 @@ end: return ret; } +LTTNG_HIDDEN int bytecode_symbol_iterator_get_type(struct bytecode_symbol_iterator *it) { int ret; @@ -80,6 +83,7 @@ end: return ret; } +LTTNG_HIDDEN const char *bytecode_symbol_iterator_get_name( struct bytecode_symbol_iterator *it) { @@ -94,6 +98,7 @@ end: return ret; } +LTTNG_HIDDEN void bytecode_symbol_iterator_destroy(struct bytecode_symbol_iterator *it) { free(it); diff --git a/src/common/filter.h b/src/common/filter.h index 051177a0e..4a3a3ae52 100644 --- a/src/common/filter.h +++ b/src/common/filter.h @@ -26,6 +26,7 @@ struct bytecode_symbol_iterator; * Create an iterator on a bytecode's symbols. The iterator points to the * first element after creation. */ +LTTNG_HIDDEN struct bytecode_symbol_iterator *bytecode_symbol_iterator_create( struct lttng_filter_bytecode *bytecode); @@ -34,13 +35,17 @@ struct bytecode_symbol_iterator *bytecode_symbol_iterator_create( * * Returns 0 if a next element exists or a negative value at the end. */ +LTTNG_HIDDEN int bytecode_symbol_iterator_next(struct bytecode_symbol_iterator *it); +LTTNG_HIDDEN int bytecode_symbol_iterator_get_type(struct bytecode_symbol_iterator *it); +LTTNG_HIDDEN const char *bytecode_symbol_iterator_get_name( struct bytecode_symbol_iterator *it); +LTTNG_HIDDEN void bytecode_symbol_iterator_destroy(struct bytecode_symbol_iterator *it); #endif /* LTTNG_COMMON_FILTER_H */