diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-12-24 07:53:37 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-12-24 07:53:37 +0100 |
commit | c4e3d66ba5bb6f91a0b5a36bab1123e25623b5e9 (patch) | |
tree | 2cac4fac4512c8c0eccc47d78ad07fd2fea768b9 /src/core/wee-config-file.h | |
parent | 2e5489b389c339799c5950f275cbc784927495da (diff) | |
download | weechat-c4e3d66ba5bb6f91a0b5a36bab1123e25623b5e9.zip |
core: add a parent name in options (closes #629)
Inherited values are now displayed in /set output when the value is
null, if a parent option name is defined in option.
New option: weechat.color.chat_value_null
Diffstat (limited to 'src/core/wee-config-file.h')
-rw-r--r-- | src/core/wee-config-file.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/wee-config-file.h b/src/core/wee-config-file.h index 29d454418..5587cae4c 100644 --- a/src/core/wee-config-file.h +++ b/src/core/wee-config-file.h @@ -115,6 +115,8 @@ struct t_config_option struct t_config_file *config_file; /* configuration file */ struct t_config_section *section; /* section */ char *name; /* name */ + char *parent_name; /* parent name (to inherit the */ + /* value from another option) */ enum t_config_option_type type; /* type */ char *description; /* description */ char **string_values; /* allowed string values */ @@ -222,6 +224,10 @@ extern int config_file_option_set_null (struct t_config_option *option, extern int config_file_option_unset (struct t_config_option *option); extern void config_file_option_rename (struct t_config_option *option, const char *new_name); +extern char *config_file_option_value_to_string (struct t_config_option *option, + int default_value, + int add_delimiters, + int use_colors); extern void *config_file_option_get_pointer (struct t_config_option *option, const char *property); extern int config_file_option_is_null (struct t_config_option *option); |