aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-06-12 08:12:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-12 08:12:19 +0000
commit6a0a6b0b0199f8ef048c05600622f38cb0d92b51 (patch)
tree6d58546ee4af49d67b94e0013c6436e85ef81a70 /config.h
parentMerge branch 'no-conf-found-is-not-an-error' (diff)
parentOverride options from command line (diff)
Merge branch 'config-cli-override'
Closes #554
Diffstat (limited to 'config.h')
-rw-r--r--config.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/config.h b/config.h
index f5e20879..07fbcb1c 100644
--- a/config.h
+++ b/config.h
@@ -54,6 +54,8 @@ struct config_mouse_binding {
};
typedef tll(struct config_mouse_binding) config_mouse_binding_list_t;
+typedef tll(char *) config_override_t;
+
struct config_spawn_template {
char *raw_cmd;
char **argv;
@@ -243,9 +245,12 @@ struct config {
user_notifications_t notifications;
};
+bool config_override_apply(struct config *conf, config_override_t *overrides,
+ bool errors_are_fatal);
bool config_load(
struct config *conf, const char *path,
- user_notifications_t *initial_user_notifications, bool errors_are_fatal);
+ user_notifications_t *initial_user_notifications,
+ config_override_t *overrides, bool errors_are_fatal);
void config_free(struct config conf);
bool config_font_parse(const char *pattern, struct config_font *font);