"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/modules/module-card-restore.c" between
pulseaudio-14.0.tar.xz and pulseaudio-14.2.tar.xz

About: PulseAudio is a networked sound server (for POSIX OSes), a proxy for your sound applications.

module-card-restore.c  (pulseaudio-14.0.tar.xz):module-card-restore.c  (pulseaudio-14.2.tar.xz)
skipping to change at line 621 skipping to change at line 621
trigger_save(u); trigger_save(u);
entry_free(e); entry_free(e);
return PA_HOOK_OK; return PA_HOOK_OK;
} }
int pa__init(pa_module*m) { int pa__init(pa_module*m) {
pa_modargs *ma = NULL; pa_modargs *ma = NULL;
struct userdata *u; struct userdata *u;
char *fname; char *state_path;
bool restore_bluetooth_profile; bool restore_bluetooth_profile;
pa_assert(m); pa_assert(m);
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) { if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
pa_log("Failed to parse module arguments"); pa_log("Failed to parse module arguments");
goto fail; goto fail;
} }
restore_bluetooth_profile = false; restore_bluetooth_profile = false;
skipping to change at line 651 skipping to change at line 651
pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_NEW], PA_HOOK_EA RLY, (pa_hook_cb_t) card_new_hook_callback, u); pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_NEW], PA_HOOK_EA RLY, (pa_hook_cb_t) card_new_hook_callback, u);
pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_CHOOSE_INITIAL_P ROFILE], PA_HOOK_NORMAL, pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_CHOOSE_INITIAL_P ROFILE], PA_HOOK_NORMAL,
(pa_hook_cb_t) card_choose_initial_profile_callback, u); (pa_hook_cb_t) card_choose_initial_profile_callback, u);
pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_PUT], PA_HOOK_NO RMAL, (pa_hook_cb_t) card_put_hook_callback, u); pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_PUT], PA_HOOK_NO RMAL, (pa_hook_cb_t) card_put_hook_callback, u);
pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_PREFERRED_PORT_C HANGED], PA_HOOK_NORMAL, (pa_hook_cb_t) card_preferred_port_changed_callback, u) ; pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_PREFERRED_PORT_C HANGED], PA_HOOK_NORMAL, (pa_hook_cb_t) card_preferred_port_changed_callback, u) ;
pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_PROFILE_CHANGED] , PA_HOOK_NORMAL, (pa_hook_cb_t) card_profile_changed_callback, u); pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_PROFILE_CHANGED] , PA_HOOK_NORMAL, (pa_hook_cb_t) card_profile_changed_callback, u);
pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_PROFILE_ADDED], PA_HOOK_NORMAL, (pa_hook_cb_t) card_profile_added_callback, u); pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_CARD_PROFILE_ADDED], PA_HOOK_NORMAL, (pa_hook_cb_t) card_profile_added_callback, u);
pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_PORT_LATENCY_OFFSET_C HANGED], PA_HOOK_NORMAL, (pa_hook_cb_t) port_offset_change_callback, u); pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_PORT_LATENCY_OFFSET_C HANGED], PA_HOOK_NORMAL, (pa_hook_cb_t) port_offset_change_callback, u);
if (!(fname = pa_state_path("card-database", true))) if (!(state_path = pa_state_path(NULL, true)))
goto fail; goto fail;
if (!(u->database = pa_database_open(fname, true))) { if (!(u->database = pa_database_open(state_path, "card-database", true, true
pa_log("Failed to open volume database '%s': %s", fname, pa_cstrerror(er ))) {
rno)); pa_xfree(state_path);
pa_xfree(fname);
goto fail; goto fail;
} }
pa_log_info("Successfully opened database file '%s'.", fname); pa_xfree(state_path);
pa_xfree(fname);
pa_modargs_free(ma); pa_modargs_free(ma);
return 0; return 0;
fail: fail:
pa__done(m); pa__done(m);
if (ma) if (ma)
pa_modargs_free(ma); pa_modargs_free(ma);
 End of changes. 4 change blocks. 
8 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)