Mercurial > audlegacy-plugins
diff src/rootvis/config.h @ 900:d985f0dcdeb0 trunk
[svn] - add a starting point for xmms-rootvis port. giacomo will need to
finish this up, as my XLib skills are not enough at this time.
author | nenolod |
---|---|
date | Mon, 26 Mar 2007 01:19:26 -0700 |
parents | |
children | 2346d918470d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/rootvis/config.h Mon Mar 26 01:19:26 2007 -0700 @@ -0,0 +1,57 @@ +enum valtype { + BOOLN, + INT, + FLOAT, + TEXT, + COLOR +}; + +void config_init(void); +void config_revert(int); +void config_save(int); + +void config_show(int); + +struct config_value_int { + int* var; + int def_value; + int range[2]; +}; + +struct config_value_float { + float* var; + float def_value; + float range[2]; +}; + +struct config_value_text { + char** var; + char* def_value; + int maxlength; +}; + +struct config_value_color { + unsigned char* var; + char* def_value; + void* frontend; +}; + +struct config_value { + enum valtype type; + char* name; + int affects; + union { + struct config_value_int vali; + struct config_value_float valf; + struct config_value_text valt; + struct config_value_color valc; + }; +}; + +struct config_def { + int count; + struct config_value* def; +}; + +struct config_def Cmain; +struct config_def Cchannel[2];