summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h22
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