diff options
author | pommicket <pommicket@gmail.com> | 2023-08-05 14:02:00 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-05 14:02:00 -0400 |
commit | 4726bd906ac8c165a10d819a33ccb3697f8040a9 (patch) | |
tree | 8ab8d0357ceecf281fef89a6c21444c6a73f8d95 /config.c | |
parent | 4ab3631aadcd27df708a16f6bf22953e0ff9b1cf (diff) |
more plugin prep
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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; |