mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
Reorganised the source tree. We now have src/ with a couple of subdirs:
* daemon/ - Contains the files specific to the polypaudio daemon. * modules/ - All loadable modules. * polyp/ - Files that are part of the public, application interface or are only used in libpolyp. * polypcore/ - All other shared files. * tests/ - Test programs. * utils/ - Utility programs. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@487 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
5b881e6228
commit
e205b25d65
246 changed files with 724 additions and 689 deletions
|
|
@ -1,42 +0,0 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#include "strlist.h"
|
||||
#include "xmalloc.h"
|
||||
#include "gccmacro.h"
|
||||
|
||||
int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char* argv[]) {
|
||||
char *t, *u;
|
||||
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);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue