rework module usage counter stuff to be pull based

This commit is contained in:
Lennart Poettering 2009-01-15 20:49:12 +01:00
parent edf88a5150
commit bae221cca9
17 changed files with 126 additions and 18 deletions

View file

@ -415,6 +415,15 @@ fail:
return -1;
}
int pa__get_n_used(pa_module *m) {
struct userdata *u;
pa_assert(m);
pa_assert_se(u = m->userdata);
return pa_sink_linked_by(u->sink);
}
void pa__done(pa_module*m) {
struct userdata *u;