diff options
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/card.c | 2 | ||||
-rw-r--r-- | src/pulsecore/core.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/pulsecore/card.c b/src/pulsecore/card.c index 2f0a3af0..feaa4440 100644 --- a/src/pulsecore/card.c +++ b/src/pulsecore/card.c @@ -241,6 +241,8 @@ int pa_card_set_profile(pa_card *c, const char *name, pa_bool_t save) { c->active_profile = profile; c->save_profile = save; + pa_hook_fire(&c->core->hooks[PA_CORE_HOOK_CARD_PROFILE_CHANGED], c); + return 0; } diff --git a/src/pulsecore/core.h b/src/pulsecore/core.h index daa89c1c..358b98d7 100644 --- a/src/pulsecore/core.h +++ b/src/pulsecore/core.h @@ -113,6 +113,7 @@ typedef enum pa_core_hook { PA_CORE_HOOK_CARD_NEW, PA_CORE_HOOK_CARD_PUT, PA_CORE_HOOK_CARD_UNLINK, + PA_CORE_HOOK_CARD_PROFILE_CHANGED, PA_CORE_HOOK_MAX } pa_core_hook_t; |