mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
rework module usage counter stuff to be pull based
This commit is contained in:
parent
edf88a5150
commit
bae221cca9
17 changed files with 126 additions and 18 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue