mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
* remove a lot of compiler warnings introduced by using some new GCC flags
* add typedefs for public structs and enums and drop the struct/enum prefixs from all uses where it makes sense git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@447 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6c512fb5a3
commit
1f0961368f
200 changed files with 3582 additions and 3468 deletions
|
|
@ -135,17 +135,17 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
case EXPORT: {
|
||||
struct pa_client_conf *c = pa_client_conf_new();
|
||||
pa_client_conf *conf = pa_client_conf_new();
|
||||
uint8_t cookie[PA_NATIVE_COOKIE_LENGTH];
|
||||
char hx[PA_NATIVE_COOKIE_LENGTH*2+1];
|
||||
assert(c);
|
||||
assert(conf);
|
||||
|
||||
if (pa_client_conf_load(c, NULL) < 0) {
|
||||
if (pa_client_conf_load(conf, NULL) < 0) {
|
||||
fprintf(stderr, "Failed to load client configuration file.\n");
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (pa_client_conf_env(c) < 0) {
|
||||
if (pa_client_conf_env(conf) < 0) {
|
||||
fprintf(stderr, "Failed to read environment configuration data.\n");
|
||||
goto finish;
|
||||
}
|
||||
|
|
@ -158,8 +158,8 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
if (server)
|
||||
pa_x11_set_prop(d, "POLYP_SERVER", server);
|
||||
else if (c->default_server)
|
||||
pa_x11_set_prop(d, "POLYP_SERVER", c->default_server);
|
||||
else if (conf->default_server)
|
||||
pa_x11_set_prop(d, "POLYP_SERVER", conf->default_server);
|
||||
else {
|
||||
char hn[256];
|
||||
if (!pa_get_fqdn(hn, sizeof(hn))) {
|
||||
|
|
@ -172,15 +172,15 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
if (sink)
|
||||
pa_x11_set_prop(d, "POLYP_SINK", sink);
|
||||
else if (c->default_sink)
|
||||
pa_x11_set_prop(d, "POLYP_SINK", c->default_sink);
|
||||
else if (conf->default_sink)
|
||||
pa_x11_set_prop(d, "POLYP_SINK", conf->default_sink);
|
||||
|
||||
if (source)
|
||||
pa_x11_set_prop(d, "POLYP_SOURCE", source);
|
||||
if (c->default_source)
|
||||
pa_x11_set_prop(d, "POLYP_SOURCE", c->default_source);
|
||||
if (conf->default_source)
|
||||
pa_x11_set_prop(d, "POLYP_SOURCE", conf->default_source);
|
||||
|
||||
pa_client_conf_free(c);
|
||||
pa_client_conf_free(conf);
|
||||
|
||||
if (pa_authkey_load_auto(cookie_file, cookie, sizeof(cookie)) < 0) {
|
||||
fprintf(stderr, "Failed to load cookie data\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue