mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
core: New function: pa_module_update_proplist().
This commit is contained in:
parent
614eef8331
commit
7ba22276d2
2 changed files with 11 additions and 0 deletions
|
|
@ -263,3 +263,12 @@ int pa_module_get_n_used(pa_module*m) {
|
|||
|
||||
return m->get_n_used(m);
|
||||
}
|
||||
|
||||
void pa_module_update_proplist(pa_module *m, pa_update_mode_t mode, pa_proplist *p) {
|
||||
pa_assert(m);
|
||||
|
||||
if (p)
|
||||
pa_proplist_update(m->proplist, mode, p);
|
||||
|
||||
pa_subscription_post(m->core, PA_SUBSCRIPTION_EVENT_MODULE|PA_SUBSCRIPTION_EVENT_CHANGE, m->index);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue