more work

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@17 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-06-15 15:18:33 +00:00
parent 98f41f1e70
commit 78f386ad45
19 changed files with 269 additions and 201 deletions

View file

@ -1,3 +1,4 @@
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
@ -24,6 +25,8 @@ struct source* source_new(struct core *core, const char *name, const struct samp
s->link_change_callback = NULL;
s->userdata = NULL;
fprintf(stderr, "source: created %u \"%s\"\n", s->index, s->name);
return s;
}
@ -40,6 +43,8 @@ void source_free(struct source *s) {
idxset_remove_by_data(s->core->sources, s, NULL);
fprintf(stderr, "source: freed %u \"%s\"\n", s->index, s->name);
free(s->name);
free(s);
}