diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-07-16 15:51:18 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-07-16 15:51:18 +0200 |
commit | 2992a3f013aaa833f2c72ef1e368a9752b2bb889 (patch) | |
tree | f37c842780736df1b01d47c4bfd05dc34ae02376 /config.h | |
parent | e1dd4d63c1e3cd63b1ebc84d54f91f91afa16dba (diff) | |
download | nebula2-2992a3f013aaa833f2c72ef1e368a9752b2bb889.tar.gz nebula2-2992a3f013aaa833f2c72ef1e368a9752b2bb889.tar.bz2 nebula2-2992a3f013aaa833f2c72ef1e368a9752b2bb889.zip |
Config stuff now in own files.
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/config.h b/config.h new file mode 100644 index 0000000..11923eb --- /dev/null +++ b/config.h @@ -0,0 +1,22 @@ +#ifndef _nebula2_config_h_ +#define _nebula2_config_h_ + +#include "color.h" + +typedef struct { + int width, height; + int jobsize, jobs, procn; + + char* statefile; + char* output; + + int iters_n; + int* iters; + color_t* colors; +} config_t; + +extern void conf_destroy(config_t* conf); +extern int conf_load(char* path, config_t** conf); +extern void conf_print(config_t* conf); + +#endif |