mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
more work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@17 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
98f41f1e70
commit
78f386ad45
19 changed files with 269 additions and 201 deletions
|
|
@ -40,6 +40,9 @@ struct module* module_load(struct core *c, const char *name, const char *argumen
|
|||
assert(c->modules);
|
||||
r = idxset_put(c->modules, m, &m->index);
|
||||
assert(r >= 0 && m->index != IDXSET_INVALID);
|
||||
|
||||
fprintf(stderr, "module: loaded %u \"%s\" with argument \"%s\".\n", m->index, m->name, m->argument);
|
||||
|
||||
return m;
|
||||
|
||||
fail:
|
||||
|
|
@ -61,6 +64,9 @@ static void module_free(struct module *m) {
|
|||
m->done(m->core, m);
|
||||
|
||||
lt_dlclose(m->dl);
|
||||
|
||||
fprintf(stderr, "module: unloaded %u \"%s\".\n", m->index, m->name);
|
||||
|
||||
free(m->name);
|
||||
free(m->argument);
|
||||
free(m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue