mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
add name registrar
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@39 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
010378643e
commit
a74cd2a1bd
17 changed files with 354 additions and 26 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue