mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
add new function pa_strna
This commit is contained in:
parent
36362f624f
commit
251f720b05
1 changed files with 4 additions and 1 deletions
|
|
@ -97,6 +97,10 @@ static inline const char *pa_strempty(const char *x) {
|
|||
return x ? x : "";
|
||||
}
|
||||
|
||||
static inline const char *pa_strna(const char *x) {
|
||||
return x ? x : "n/a";
|
||||
}
|
||||
|
||||
char *pa_split(const char *c, const char*delimiters, const char **state);
|
||||
char *pa_split_spaces(const char *c, const char **state);
|
||||
|
||||
|
|
@ -198,7 +202,6 @@ pa_bool_t pa_in_system_mode(void);
|
|||
char *pa_machine_id(void);
|
||||
char *pa_uname_string(void);
|
||||
|
||||
|
||||
#ifdef HAVE_VALGRIND_MEMCHECK_H
|
||||
pa_bool_t pa_in_valgrind(void);
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue