diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-11-11 21:18:33 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-11-11 21:18:33 +0000 |
commit | c005bd466651d8720aef3198d73bc0a3d459f953 (patch) | |
tree | eb4bc36858b0e9a504b022a7f66b5fa21ff13f65 /polyp/strlist-test.c | |
parent | dbaa83c60730633315aa13d74907c6572985c050 (diff) |
add username to runtime directory name in /tmp/
rework autospawning code and x11 credential publishing
add support for IPv6
reenable LOWDELAY for tcp sockets
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@280 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/strlist-test.c')
-rw-r--r-- | polyp/strlist-test.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/polyp/strlist-test.c b/polyp/strlist-test.c new file mode 100644 index 00000000..01dcdf12 --- /dev/null +++ b/polyp/strlist-test.c @@ -0,0 +1,39 @@ +#include <stdio.h> + +#include "strlist.h" +#include "xmalloc.h" + +int main(int argc, char* argv[]) { + char *t, *u; + struct pa_strlist *l = NULL; + + l = pa_strlist_prepend(l, "e"); + l = pa_strlist_prepend(l, "d"); + l = pa_strlist_prepend(l, "c"); + l = pa_strlist_prepend(l, "b"); + l = pa_strlist_prepend(l, "a"); + + t = pa_strlist_tostring(l); + pa_strlist_free(l); + + fprintf(stderr, "1: %s\n", t); + + l = pa_strlist_parse(t); + pa_xfree(t); + + t = pa_strlist_tostring(l); + fprintf(stderr, "2: %s\n", t); + pa_xfree(t); + + l = pa_strlist_pop(l, &u); + fprintf(stderr, "3: %s\n", u); + pa_xfree(u); + + l = pa_strlist_remove(l, "c"); + + t = pa_strlist_tostring(l); + fprintf(stderr, "4: %s\n", t); + pa_xfree(t); + + pa_strlist_free(l); +} |