mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
Huge trailing whitespace cleanup. Let's keep the tree pure from here on,
mmmkay? git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
1a460ee40a
commit
521daf6f0a
283 changed files with 3742 additions and 3742 deletions
|
|
@ -2,17 +2,17 @@
|
|||
|
||||
/***
|
||||
This file is part of PulseAudio.
|
||||
|
||||
|
||||
PulseAudio is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published
|
||||
by the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
|
||||
PulseAudio is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with PulseAudio; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
|
|
@ -99,7 +99,7 @@ int main(int argc, char *argv[]) {
|
|||
switch (mode) {
|
||||
case DUMP: {
|
||||
char t[1024];
|
||||
if (pa_x11_get_prop(d, "PULSE_SERVER", t, sizeof(t)))
|
||||
if (pa_x11_get_prop(d, "PULSE_SERVER", t, sizeof(t)))
|
||||
printf("Server: %s\n", t);
|
||||
if (pa_x11_get_prop(d, "PULSE_SOURCE", t, sizeof(t)))
|
||||
printf("Source: %s\n", t);
|
||||
|
|
@ -110,10 +110,10 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case IMPORT: {
|
||||
char t[1024];
|
||||
if (pa_x11_get_prop(d, "PULSE_SERVER", t, sizeof(t)))
|
||||
if (pa_x11_get_prop(d, "PULSE_SERVER", t, sizeof(t)))
|
||||
printf("PULSE_SERVER='%s'\nexport PULSE_SERVER\n", t);
|
||||
if (pa_x11_get_prop(d, "PULSE_SOURCE", t, sizeof(t)))
|
||||
printf("PULSE_SOURCE='%s'\nexport PULSE_SOURCE\n", t);
|
||||
|
|
@ -158,7 +158,7 @@ int main(int argc, char *argv[]) {
|
|||
pa_x11_del_prop(d, "PULSE_SOURCE");
|
||||
pa_x11_del_prop(d, "PULSE_ID");
|
||||
pa_x11_del_prop(d, "PULSE_COOKIE");
|
||||
|
||||
|
||||
if (server)
|
||||
pa_x11_set_prop(d, "PULSE_SERVER", server);
|
||||
else if (conf->default_server)
|
||||
|
|
@ -169,7 +169,7 @@ int main(int argc, char *argv[]) {
|
|||
fprintf(stderr, "Failed to get FQDN.\n");
|
||||
goto finish;
|
||||
}
|
||||
|
||||
|
||||
pa_x11_set_prop(d, "PULSE_SERVER", hn);
|
||||
}
|
||||
|
||||
|
|
@ -184,7 +184,7 @@ int main(int argc, char *argv[]) {
|
|||
pa_x11_set_prop(d, "PULSE_SOURCE", conf->default_source);
|
||||
|
||||
pa_client_conf_free(conf);
|
||||
|
||||
|
||||
if (pa_authkey_load_auto(cookie_file, cookie, sizeof(cookie)) < 0) {
|
||||
fprintf(stderr, "Failed to load cookie data\n");
|
||||
goto finish;
|
||||
|
|
@ -201,20 +201,20 @@ int main(int argc, char *argv[]) {
|
|||
pa_x11_del_prop(d, "PULSE_ID");
|
||||
pa_x11_del_prop(d, "PULSE_COOKIE");
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
fprintf(stderr, "No yet implemented.\n");
|
||||
goto finish;
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
|
||||
|
||||
finish:
|
||||
|
||||
if (d) {
|
||||
XSync(d, False);
|
||||
XCloseDisplay(d);
|
||||
}
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue