client-conf: refactor cookie loaders

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
This commit is contained in:
Alexander Couzens 2013-08-21 13:48:12 +02:00 committed by Tanu Kaskinen
parent bf9b3f0720
commit dac6a74155
3 changed files with 51 additions and 19 deletions

View file

@ -48,7 +48,13 @@ int pa_client_conf_load(pa_client_conf *c, const char *filename);
process, overwriting the current settings in *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(pa_client_conf* c);
/* Load cookie data from cookie_file_path into c->cookie */
int pa_client_conf_load_cookie_from_file(pa_client_conf *c, const char *cookie_file_path);
/* Load cookie data from hexdecimal string into c->cookie */
int pa_client_conf_load_cookie_from_hex(pa_client_conf *c, const char *cookie_in_hex);
/* Set cookie direct from memory */
int pa_client_conf_set_cookie(pa_client_conf *c, uint8_t *cookie, size_t cookie_size);
#endif