diff options
Diffstat (limited to 'src/core/wee-config-file.h')
-rw-r--r-- | src/core/wee-config-file.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/wee-config-file.h b/src/core/wee-config-file.h index 05b074814..c0ab4dce2 100644 --- a/src/core/wee-config-file.h +++ b/src/core/wee-config-file.h @@ -23,6 +23,8 @@ #include <stdio.h> +#define CONFIG_PRIORITY_DEFAULT 1000 + #define CONFIG_BOOLEAN(option) (*((int *)((option)->value))) #define CONFIG_BOOLEAN_DEFAULT(option) (*((int *)((option)->default_value))) @@ -46,6 +48,8 @@ struct t_config_option; struct t_config_file { struct t_weechat_plugin *plugin; /* plugin which created this cfg */ + int priority; /* config files are sorted by */ + /* priority then name */ char *name; /* name (example: "weechat") */ char *filename; /* filename (without path) */ /* (example: "weechat.conf") */ |