From: Jérémie Galarneau Date: Wed, 21 Jun 2017 13:35:12 +0000 (-0400) Subject: Hide internal string-utils symbols X-Git-Tag: v2.10.0~62 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bad09a95e3eefe9fa2d77432a511eb0adacde493;p=lttng-tools.git Hide internal string-utils symbols Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/string-utils/string-utils.c b/src/common/string-utils/string-utils.c index 8e1f516b6..325f54b53 100644 --- a/src/common/string-utils/string-utils.c +++ b/src/common/string-utils/string-utils.c @@ -117,6 +117,7 @@ end: * Returns true if `pattern` is a star-only globbing pattern, that is, * it contains at least one non-escaped `*`. */ +LTTNG_HIDDEN bool strutils_is_star_glob_pattern(const char *pattern) { return strutils_test_glob_pattern(pattern) & @@ -127,6 +128,7 @@ bool strutils_is_star_glob_pattern(const char *pattern) * Returns true if `pattern` is a globbing pattern with a globbing, * non-escaped star only at its very end. */ +LTTNG_HIDDEN bool strutils_is_star_at_the_end_only_glob_pattern(const char *pattern) { return strutils_test_glob_pattern(pattern) & diff --git a/src/common/string-utils/string-utils.h b/src/common/string-utils/string-utils.h index 14e40c470..6c357c1a7 100644 --- a/src/common/string-utils/string-utils.h +++ b/src/common/string-utils/string-utils.h @@ -19,13 +19,27 @@ #define _STRING_UTILS_H #include +#include +LTTNG_HIDDEN void strutils_normalize_star_glob_pattern(char *pattern); + +LTTNG_HIDDEN bool strutils_is_star_glob_pattern(const char *pattern); + +LTTNG_HIDDEN bool strutils_is_star_at_the_end_only_glob_pattern(const char *pattern); + +LTTNG_HIDDEN char *strutils_unescape_string(const char *input, char only_char); + +LTTNG_HIDDEN char **strutils_split(const char *input, char delim, bool escape_delim); + +LTTNG_HIDDEN void strutils_free_null_terminated_array_of_strings(char **array); + +LTTNG_HIDDEN size_t strutils_array_of_strings_len(char * const *array); #endif /* _STRING_UTILS_H */