diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-11-21 21:31:28 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-11-21 21:31:28 +0000 |
commit | 4763ca1376fc136158e576de94dc1cf6c6584973 (patch) | |
tree | 6f8d36ec68061a587883d94e9eacc52bbf707028 /polyp/client-conf.h | |
parent | 2fb83d13f27214476f90fe619b26f5bbc8f520c8 (diff) |
Comment some more files
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@309 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/client-conf.h')
-rw-r--r-- | polyp/client-conf.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/polyp/client-conf.h b/polyp/client-conf.h index cf7dd095..b4625039 100644 --- a/polyp/client-conf.h +++ b/polyp/client-conf.h @@ -24,19 +24,29 @@ #include "native-common.h" +/* A structure containing configuration data for polypaudio clients. */ + struct pa_client_conf { char *daemon_binary, *extra_arguments, *default_sink, *default_source, *default_server, *cookie_file; int autospawn; uint8_t cookie[PA_NATIVE_COOKIE_LENGTH]; - int cookie_valid; + int cookie_valid; /* non-zero, when cookie is valid */ }; +/* Create a new configuration data object and reset it to defaults */ struct pa_client_conf *pa_client_conf_new(void); void pa_client_conf_free(struct pa_client_conf *c); +/* Load the configuration data from the speicified file, overwriting + * the current settings in *c. When the filename is NULL, the + * default client configuration file name is used. */ int pa_client_conf_load(struct pa_client_conf *c, const char *filename); + +/* Load the configuration data from the environment of the current + process, overwriting the current settings in *c. */ int pa_client_conf_env(struct pa_client_conf *c); +/* Load cookie data from c->cookie_file into c->cookie */ int pa_client_conf_load_cookie(struct pa_client_conf* c); #endif |