diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-28 19:59:45 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-28 19:59:45 +0200 |
commit | 987ef9e45485fac3de052ee81ef0678296bbd86c (patch) | |
tree | bfede195a27fda79d9bc6d617368e857a0f3648a /src/plugins/fset/fset-option.h | |
parent | f851246ff667a5ab9fb03675a368988028180f9c (diff) | |
download | weechat-987ef9e45485fac3de052ee81ef0678296bbd86c.zip |
fset: replace hashtable by a simple structure for max length of fields
Diffstat (limited to 'src/plugins/fset/fset-option.h')
-rw-r--r-- | src/plugins/fset/fset-option.h | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/src/plugins/fset/fset-option.h b/src/plugins/fset/fset-option.h index 438d89340..6ac4f3c40 100644 --- a/src/plugins/fset/fset-option.h +++ b/src/plugins/fset/fset-option.h @@ -53,9 +53,34 @@ struct t_fset_option struct t_fset_option *next_option; /* link to next option */ }; +struct t_fset_option_max_length +{ + int file; + int section; + int option; + int name; + int parent_name; + int type; + int type_en; + int type_short; + int type_tiny; + int default_value; + int value; + int parent_value; + int value2; + int min; + int max; + int description; + int description2; + int description_en; + int description_en2; + int string_values; + int marked; +}; + extern struct t_arraylist *fset_options; extern int fset_option_count_marked; -extern struct t_hashtable *fset_option_max_length_field; +extern struct t_fset_option_max_length *fset_option_max_length; extern char *fset_option_filter; extern char *fset_option_type_string[]; extern char *fset_option_type_string_short[]; @@ -68,7 +93,7 @@ extern int fset_option_value_is_changed (struct t_fset_option *option); extern void fset_option_set_max_length_fields_all (); extern void fset_option_free (struct t_fset_option *fset_option); extern struct t_arraylist *fset_option_get_arraylist_options (); -extern struct t_hashtable *fset_option_get_hashtable_max_length_field (); +extern struct t_fset_option_max_length *fset_option_get_max_length (); extern void fset_option_get_options (); extern void fset_option_set_filter (const char *filter); extern void fset_option_filter_options (const char *filter); |