X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Fstring-utils.h;h=a2ee531af3f8066bff5c4382d0e52787a4e250c9;hb=6ba6fd60507f8e045bdc4f1be14e9d99c6a15f7f;hp=94e9a5c18c22245f28edcc23ab161a4dc1d90b7e;hpb=e85a0294955aee3dfa48d2a8c18646a16d7b8750;p=lttng-ust.git diff --git a/liblttng-ust/string-utils.h b/liblttng-ust/string-utils.h index 94e9a5c1..a2ee531a 100644 --- a/liblttng-ust/string-utils.h +++ b/liblttng-ust/string-utils.h @@ -1,33 +1,23 @@ -#ifndef _STRING_UTILS_H -#define _STRING_UTILS_H - /* - * Copyright (C) 2017 - Philippe Proulx - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * SPDX-License-Identifier: MIT * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Copyright (C) 2017 Philippe Proulx */ +#ifndef _STRING_UTILS_H +#define _STRING_UTILS_H + #include +#include + +bool strutils_is_star_glob_pattern(const char *pattern) + __attribute__((visibility("hidden"))); + +bool strutils_is_star_at_the_end_only_glob_pattern(const char *pattern) + __attribute__((visibility("hidden"))); -bool strutils_is_star_glob_pattern(const char *pattern); -bool strutils_is_star_at_the_end_only_glob_pattern(const char *pattern); bool strutils_star_glob_match(const char *pattern, size_t pattern_len, - const char *candidate, size_t candidate_len); + const char *candidate, size_t candidate_len) + __attribute__((visibility("hidden"))); #endif /* _STRING_UTILS_H */