mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
add module-combine
remove option "stay-root" clean up pa_conf git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@199 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
829656c5fc
commit
8c6593dabf
21 changed files with 469 additions and 81 deletions
16
polyp/util.c
16
polyp/util.c
|
|
@ -373,3 +373,19 @@ int pa_parse_boolean(const char *v) {
|
|||
|
||||
return -1;
|
||||
}
|
||||
|
||||
char *pa_split(const char *c, const char *delimiter, const char**state) {
|
||||
const char *current = *state ? *state : c;
|
||||
size_t l;
|
||||
|
||||
if (!*current)
|
||||
return NULL;
|
||||
|
||||
l = strcspn(current, delimiter);
|
||||
*state = current+l;
|
||||
|
||||
if (**state)
|
||||
*state++;
|
||||
|
||||
return pa_xstrndup(current, l);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue