mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
add hooks for connection creation/deletion, for that export pa_native_connection
This commit is contained in:
parent
c01f0bc01f
commit
eec623a23b
3 changed files with 248 additions and 206 deletions
|
|
@ -152,7 +152,7 @@ int pa__init(pa_module*m) {
|
|||
u->x11_client = NULL;
|
||||
u->x11_wrapper = NULL;
|
||||
|
||||
u->hook_slot = pa_hook_connect(pa_native_protocol_servers_changed(u->protocol), PA_HOOK_NORMAL, servers_changed_cb, u);
|
||||
u->hook_slot = pa_hook_connect(&pa_native_protocol_hooks(u->protocol)[PA_NATIVE_HOOK_SERVERS_CHANGED], PA_HOOK_NORMAL, servers_changed_cb, u);
|
||||
|
||||
if (!(u->auth_cookie = pa_auth_cookie_get(m->core, pa_modargs_get_value(ma, "cookie", PA_NATIVE_COOKIE_FILE), PA_NATIVE_COOKIE_LENGTH)))
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue