add name registrar

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@39 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-06-27 22:42:17 +00:00
parent 010378643e
commit a74cd2a1bd
17 changed files with 354 additions and 26 deletions

View file

@ -6,6 +6,7 @@
#include "module.h"
#include "sink.h"
#include "source.h"
#include "namereg.h"
struct core* core_new(struct pa_mainloop_api *m) {
struct core* c;
@ -22,6 +23,7 @@ struct core* core_new(struct pa_mainloop_api *m) {
c->default_source_index = c->default_sink_index = IDXSET_INVALID;
c->modules = NULL;
c->namereg = NULL;
return c;
};
@ -47,6 +49,8 @@ void core_free(struct core *c) {
assert(idxset_isempty(c->sink_inputs));
idxset_free(c->sink_inputs, NULL, NULL);
namereg_free(c);
free(c);
};