summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-08-07 10:53:59 +0100
committerPhil Jones <philj56@gmail.com>2022-08-07 10:53:59 +0100
commite946ae5a30d4e6e367b05ac82fb96cd7083b7566 (patch)
tree2da670a14e96498d517c1a0efdae12886e5a8625 /src/config.h
parentc9f1daea03a41c0cad56453e1dcc50f6133f19c6 (diff)
Delay scaling of percentage values.
The config file code now delays calculation of percentage values until `config_fix_percentages()` is called. This allows the config file to be parsed before output configuration is complete, thus allowing `--output` and `--late-keyboard-init` to be specified in the config file.
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h
index 65e4f4d..c8db6b4 100644
--- a/src/config.h
+++ b/src/config.h
@@ -4,6 +4,7 @@
#include "tofi.h"
void config_load(struct tofi *tofi, const char *filename);
-void apply_option(struct tofi *tofi, const char *option, const char *value);
+void config_apply(struct tofi *tofi, const char *option, const char *value);
+void config_fix_percentages(struct tofi *tofi);
#endif /* TOFI_CONFIG_H */