summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.fritz.box>2018-04-02 01:37:40 +0200
committererdgeist <erdgeist@bauklotz.fritz.box>2018-04-02 01:37:40 +0200
commitfa0cb86eec43978054f9db295a77449d6b83ba43 (patch)
tree1d9cc1b5d7dcf9d3a1ecc1d9e10e7cab1466f6a8 /config.h
parentc12537f51ecd538f74efe568e9965bb79a68ddd2 (diff)
Too many changes
Diffstat (limited to 'config.h')
-rw-r--r--config.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/config.h b/config.h
index 64f7689..645499d 100644
--- a/config.h
+++ b/config.h
@@ -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
9extern int g_min_y, g_max_y; 10extern int g_min_y, g_max_y;
10 11
@@ -76,9 +77,14 @@ typedef struct {
76} StringConfig; 77} StringConfig;
77 78
78extern StringConfig g_string_conf[MAX_LINECOUNT]; 79extern StringConfig g_string_conf[MAX_LINECOUNT];
79extern int g_string_count; 80extern int g_string_count;
81extern ConfigSource g_config_source;
82extern int g_importing_config;
83extern int g_calibration_running;
84
80void config_reset(); 85void config_reset();
81int config_handle_line( char *line); 86int config_handle_line( char *line);
82size_t config_dumpglobals(char *out, size_t outsize); 87size_t config_dumpglobals(char *out, size_t outsize);
83size_t config_dumpstring(int string, char *out, size_t outsize); 88size_t config_dumpstring(int string, char *out, size_t outsize);
84char *config_midi_note_to_string(int string); 89char *config_midi_note_to_string(int string);
90void config_reverse_strings();