summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-07-13 10:15:03 +0200
committeraura <nw@moneybot.cc>2026-07-13 10:15:03 +0200
commit57d172df4db1451ba3caeeb0ca485d0845a61912 (patch)
treead0be7c8bec79a1eb58b25f2a631bc4b6809e7fd /src/config.h
push source
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
new file mode 100644
index 0000000..cca2d78
--- /dev/null
+++ b/src/config.h
@@ -0,0 +1,23 @@
+#pragma once
+#include "util.h"
+
+struct CONFIG {
+ I32 port;
+ I32 units; // 0 km/h, 1 mph
+ I32 keep;
+ F64 tach_x, tach_y, tach_r; // center + radius, fractions
+ F64 scale;
+ F64 blur;
+ I32 show_boost;
+ I32 flash_needle;
+ F64 boost_x, boost_y, boost_r;
+ I32 show_abs, show_tcs, show_lc, show_tires;
+ F64 tire_x, tire_y, tire_sc;
+ I32 autoscale_rpm;
+ F64 rpm_off;
+ char path[512];
+ time_t mtime;
+};
+
+void config_init( CONFIG *c );
+U8 config_poll( CONFIG *c );