[pulseaudio-commits] r2009 - in /trunk/src/pulse: client-conf.c client-conf.h
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Wed Oct 31 17:33:14 PDT 2007
Author: lennart
Date: Thu Nov 1 01:33:14 2007
New Revision: 2009
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2009&root=pulseaudio&view=rev
Log:
pa_boolize the client config
Modified:
trunk/src/pulse/client-conf.c
trunk/src/pulse/client-conf.h
Modified: trunk/src/pulse/client-conf.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulse/client-conf.c?rev=2009&root=pulseaudio&r1=2008&r2=2009&view=diff
==============================================================================
--- trunk/src/pulse/client-conf.c (original)
+++ trunk/src/pulse/client-conf.c Thu Nov 1 01:33:14 2007
@@ -58,10 +58,10 @@
.default_sink = NULL,
.default_source = NULL,
.default_server = NULL,
- .autospawn = 0,
- .disable_shm = 0,
+ .autospawn = FALSE,
+ .disable_shm = FALSE,
.cookie_file = NULL,
- .cookie_valid = 0,
+ .cookie_valid = FALSE,
};
pa_client_conf *pa_client_conf_new(void) {
@@ -172,7 +172,7 @@
int pa_client_conf_load_cookie(pa_client_conf* c) {
pa_assert(c);
- c->cookie_valid = 0;
+ c->cookie_valid = FALSE;
if (!c->cookie_file)
return -1;
@@ -180,7 +180,6 @@
if (pa_authkey_load_auto(c->cookie_file, c->cookie, sizeof(c->cookie)) < 0)
return -1;
- c->cookie_valid = 1;
+ c->cookie_valid = TRUE;
return 0;
}
-
Modified: trunk/src/pulse/client-conf.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulse/client-conf.h?rev=2009&root=pulseaudio&r1=2008&r2=2009&view=diff
==============================================================================
--- trunk/src/pulse/client-conf.h (original)
+++ trunk/src/pulse/client-conf.h Thu Nov 1 01:33:14 2007
@@ -30,9 +30,9 @@
typedef struct pa_client_conf {
char *daemon_binary, *extra_arguments, *default_sink, *default_source, *default_server, *cookie_file;
- int autospawn, disable_shm;
+ pa_bool_t autospawn, disable_shm;
uint8_t cookie[PA_NATIVE_COOKIE_LENGTH];
- int cookie_valid; /* non-zero, when cookie is valid */
+ pa_bool_t cookie_valid; /* non-zero, when cookie is valid */
} pa_client_conf;
/* Create a new configuration data object and reset it to defaults */
More information about the pulseaudio-commits
mailing list