diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
commit | 1f0961368f58a9fec319d86c79a86a9f0d008cf5 (patch) | |
tree | c712a897bb34ade3c03a06ba754264153ac3bc16 /polyp/client-conf.h | |
parent | 6c512fb5a3fdb578179be79672c5096de1a1d25b (diff) |
* 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
Diffstat (limited to 'polyp/client-conf.h')
-rw-r--r-- | polyp/client-conf.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/polyp/client-conf.h b/polyp/client-conf.h index b4625039..7ca2f233 100644 --- a/polyp/client-conf.h +++ b/polyp/client-conf.h @@ -26,27 +26,27 @@ /* A structure containing configuration data for polypaudio clients. */ -struct pa_client_conf { +typedef 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; /* non-zero, when cookie is valid */ -}; +} pa_client_conf; /* 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); +pa_client_conf *pa_client_conf_new(void); +void pa_client_conf_free(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); +int pa_client_conf_load(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); +int pa_client_conf_env(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); +int pa_client_conf_load_cookie(pa_client_conf* c); #endif |