From 2992a3f013aaa833f2c72ef1e368a9752b2bb889 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Tue, 16 Jul 2013 15:51:18 +0200 Subject: Config stuff now in own files. --- config.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 config.h (limited to 'config.h') 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 -- cgit v1.2.3-54-g00ecf