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