From 3153b60a62fec0a3d826b3c0427044d1a11df3a1 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Fri, 25 Feb 2011 10:27:23 +0000 Subject: core: Add a new hook PA_CORE_HOOK_CARD_PROFILE_CHANGED This will allow modules to know when a card profile has changed and take appropriate action. This might prove useful when developing UCM so that the appropriate verb can be set. --- src/pulsecore/card.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pulsecore/card.c') 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; } -- cgit