diff options
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,10 +1,11 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include <stdint.h> | 3 | #include <stdint.h> |
4 | #include <stdlib.h> | ||
4 | #include "geometry.h" | 5 | #include "geometry.h" |
5 | 6 | ||
6 | #define MAX_LINECOUNT 32 | 7 | #define MAX_LINECOUNT 32 |
7 | #define CALIB_DEBUG | 8 | //#define CALIB_DEBUG |
8 | 9 | ||
9 | extern int g_min_y, g_max_y; | 10 | extern int g_min_y, g_max_y; |
10 | 11 | ||
@@ -76,9 +77,14 @@ typedef struct { | |||
76 | } StringConfig; | 77 | } StringConfig; |
77 | 78 | ||
78 | extern StringConfig g_string_conf[MAX_LINECOUNT]; | 79 | extern StringConfig g_string_conf[MAX_LINECOUNT]; |
79 | extern int g_string_count; | 80 | extern int g_string_count; |
81 | extern ConfigSource g_config_source; | ||
82 | extern int g_importing_config; | ||
83 | extern int g_calibration_running; | ||
84 | |||
80 | void config_reset(); | 85 | void config_reset(); |
81 | int config_handle_line( char *line); | 86 | int config_handle_line( char *line); |
82 | size_t config_dumpglobals(char *out, size_t outsize); | 87 | size_t config_dumpglobals(char *out, size_t outsize); |
83 | size_t config_dumpstring(int string, char *out, size_t outsize); | 88 | size_t config_dumpstring(int string, char *out, size_t outsize); |
84 | char *config_midi_note_to_string(int string); | 89 | char *config_midi_note_to_string(int string); |
90 | void config_reverse_strings(); | ||