summaryrefslogtreecommitdiff
path: root/config.h
blob: 9959c221e5ec351af1ef7ff42ca7aa8db61dde4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _nebula2_config_h_
#define _nebula2_config_h_

#include "color.h"

typedef struct {
	int width, height;
	int jobsize, jobs, threads;

	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