diff options
Diffstat (limited to 'src/pulsecore/core-util.h')
-rw-r--r-- | src/pulsecore/core-util.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pulsecore/core-util.h b/src/pulsecore/core-util.h index c8760a1f..d5c0a3f6 100644 --- a/src/pulsecore/core-util.h +++ b/src/pulsecore/core-util.h @@ -30,7 +30,7 @@ #include <stdarg.h> #include <stdio.h> -#include <pulsecore/gccmacro.h> +#include <pulse/gccmacro.h> #include <pulsecore/macro.h> struct timeval; @@ -67,6 +67,10 @@ static inline const char *pa_yes_no(pa_bool_t b) { return b ? "yes" : "no"; } +static inline const char *pa_strnull(const char *x) { + return x ? x : "(null)"; +} + char *pa_split(const char *c, const char*delimiters, const char **state); char *pa_split_spaces(const char *c, const char **state); @@ -129,4 +133,6 @@ void pa_close_pipe(int fds[2]); char *pa_readlink(const char *p); +char *pa_get_state_dir(void); + #endif |