diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-02-18 21:57:16 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-02-18 21:57:16 +0100 |
commit | d85ef716757f8c91ec1c97f87daf75e48bbe2de1 (patch) | |
tree | d281595112b261e6fab926f2c5aea97b21f60e50 /src/pulsecore | |
parent | be81a681ac84ac56208c3bb315e04d04c2e53606 (diff) |
export pa_match()
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/core-util.c | 6 | ||||
-rw-r--r-- | src/pulsecore/core-util.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index ad6c6ca9..d0ff7512 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -704,7 +704,7 @@ void pa_reset_priority(void) { #endif } -static int match(const char *expr, const char *v) { +int pa_match(const char *expr, const char *v) { int k; regex_t re; int r; @@ -744,12 +744,12 @@ int pa_parse_boolean(const char *v) { /* And then we check language dependant */ if ((expr = nl_langinfo(YESEXPR))) if (expr[0]) - if ((r = match(expr, v)) > 0) + if ((r = pa_match(expr, v)) > 0) return 1; if ((expr = nl_langinfo(NOEXPR))) if (expr[0]) - if ((r = match(expr, v)) > 0) + if ((r = pa_match(expr, v)) > 0) return 0; errno = EINVAL; diff --git a/src/pulsecore/core-util.h b/src/pulsecore/core-util.h index 442815f1..8fd521b1 100644 --- a/src/pulsecore/core-util.h +++ b/src/pulsecore/core-util.h @@ -141,6 +141,8 @@ size_t pa_vsnprintf(char *str, size_t size, const char *format, va_list ap); char *pa_truncate_utf8(char *c, size_t l); +int pa_match(const char *expr, const char *v); + char *pa_getcwd(void); char *pa_make_path_absolute(const char *p); pa_bool_t pa_is_path_absolute(const char *p); |