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);
|
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);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,8 @@ void pa_module_unload_all(pa_core *c);
|
||||||
|
|
||||||
int pa_module_get_n_used(pa_module*m);
|
int pa_module_get_n_used(pa_module*m);
|
||||||
|
|
||||||
|
void pa_module_update_proplist(pa_module *m, pa_update_mode_t mode, pa_proplist *p);
|
||||||
|
|
||||||
#define PA_MODULE_AUTHOR(s) \
|
#define PA_MODULE_AUTHOR(s) \
|
||||||
const char *pa__get_author(void) { return s; } \
|
const char *pa__get_author(void) { return s; } \
|
||||||
struct __stupid_useless_struct_to_allow_trailing_semicolon
|
struct __stupid_useless_struct_to_allow_trailing_semicolon
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue