Little fix after the last commit (mostly a git fail)
[eigenmath-fx.git] / config.h
blobdf2c80e8db9bce78c71c4da5030c8cb27998b896
1 #ifndef CONFIG_H
3 #define CONFIG_H
5 #ifdef __cplusplus
6 extern "C"{
7 #endif
9 #define CONFIG_FILE "\\\\fls0\\EIGEN.cfg"
11 typedef enum {
12 CHECK_BOX, FUNCTION_CALL,
13 } Menu_Item_Type;
15 typedef struct {
16 char* str;
17 Menu_Item_Type type;
18 union { //The item can act on a variable or call a function
19 struct {
20 int* value;
21 void (*save_function)(void);
22 } val;
23 void (*function)(void);
24 } action;
25 } Menu_Item;
27 typedef struct {
28 Menu_Item** items;
29 int items_number;
30 } Menu;
33 void draw_menu(Menu* menu);
34 void menu_setup();
35 void menu_about();
36 Menu_Item* menu_create_item(const char* str, Menu_Item_Type type, void* other, void* save_func);
38 void save_config();
39 void load_config();
41 #ifdef __cplusplus
43 #endif
45 #endif // CONFIG_H