From 7cca327d228d6314e30fc5418cae0b9fbd4691cb Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 10 Oct 2009 16:28:45 +0200 Subject: new config file WIP --- conf.h | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'conf.h') diff --git a/conf.h b/conf.h index 683db68b..aa21c009 100644 --- a/conf.h +++ b/conf.h @@ -18,17 +18,25 @@ #ifndef __CONF_H #define __CONF_H -extern char conf_alsa_soundcard[1024]; -extern int conf_samplerate; -extern int conf_src_quality; -extern char conf_hvsc_path[1024]; -extern int conf_hvsc_enable; -extern char conf_blacklist_plugins[1024]; -extern int conf_close_send_to_tray; -extern int conf_replaygain_mode; -extern int conf_replaygain_scale; - int conf_load (void); +int +conf_save (void); + +void +conf_free (void); + +const char * +conf_get_str (const char *key, const char *def); + +float +conf_get_float (const char *key, float def); + +int +conf_get_int (const char *key, int def); + +void +conf_set_str (const char *key, const char *val); + #endif // __CONF_H -- cgit v1.2.3