summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-05 14:02:00 -0400
committerpommicket <pommicket@gmail.com>2023-08-05 14:02:00 -0400
commit4726bd906ac8c165a10d819a33ccb3697f8040a9 (patch)
tree8ab8d0357ceecf281fef89a6c21444c6a73f8d95 /config.c
parent4ab3631aadcd27df708a16f6bf22953e0ff9b1cf (diff)
more plugin prep
Diffstat (limited to 'config.c')
-rw-r--r--config.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/config.c b/config.c
index 4109fb7..8198485 100644
--- a/config.c
+++ b/config.c
@@ -9,6 +9,26 @@
#include "ted.h"
+/// Sections of `ted.cfg`
+typedef enum {
+ SECTION_NONE,
+ SECTION_CORE,
+ SECTION_KEYBOARD,
+ SECTION_COLORS,
+ SECTION_EXTENSIONS
+} ConfigSection;
+
+struct ConfigPart {
+ /// index in order of which part was read first.
+ int index;
+ SettingsContext context;
+ ConfigSection section;
+ char *file;
+ u32 line;
+ /// contents of this config part
+ char *text;
+};
+
// all the "control" pointers here are relative to `settings_zero`.
typedef struct {
const char *name;