summaryrefslogtreecommitdiff
path: root/src/gui/gui-filter.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-08-27 09:47:46 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-08-27 09:47:46 +0200
commitdf80aa5fc92bd5481fc8099a63dad4093405f2f4 (patch)
tree49388757d0b7d625e8dc25f484792c65d913d594 /src/gui/gui-filter.c
parente767346a193f0eb53a9324a04a75080d359b1951 (diff)
downloadweechat-df80aa5fc92bd5481fc8099a63dad4093405f2f4.zip
api: allow update for some variables of hdata, add new functions hdata_update and hdata_set
Diffstat (limited to 'src/gui/gui-filter.c')
-rw-r--r--src/gui/gui-filter.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/gui/gui-filter.c b/src/gui/gui-filter.c
index 6f4ea13f8..8df37a261 100644
--- a/src/gui/gui-filter.c
+++ b/src/gui/gui-filter.c
@@ -449,22 +449,23 @@ gui_filter_hdata_filter_cb (void *data, const char *hdata_name)
/* make C compiler happy */
(void) data;
- hdata = hdata_new (NULL, hdata_name, "prev_filter", "next_filter");
+ hdata = hdata_new (NULL, hdata_name, "prev_filter", "next_filter",
+ 0, NULL, NULL);
if (hdata)
{
- HDATA_VAR(struct t_gui_filter, enabled, INTEGER, NULL, NULL);
- HDATA_VAR(struct t_gui_filter, name, STRING, NULL, NULL);
- HDATA_VAR(struct t_gui_filter, buffer_name, STRING, NULL, NULL);
- HDATA_VAR(struct t_gui_filter, num_buffers, INTEGER, NULL, NULL);
- HDATA_VAR(struct t_gui_filter, buffers, POINTER, NULL, NULL);
- HDATA_VAR(struct t_gui_filter, tags, STRING, NULL, NULL);
- HDATA_VAR(struct t_gui_filter, tags_count, INTEGER, NULL, NULL);
- HDATA_VAR(struct t_gui_filter, tags_array, STRING, "tags_count", NULL);
- HDATA_VAR(struct t_gui_filter, regex, STRING, NULL, NULL);
- HDATA_VAR(struct t_gui_filter, regex_prefix, POINTER, NULL, NULL);
- HDATA_VAR(struct t_gui_filter, regex_message, POINTER, NULL, NULL);
- HDATA_VAR(struct t_gui_filter, prev_filter, POINTER, NULL, hdata_name);
- HDATA_VAR(struct t_gui_filter, next_filter, POINTER, NULL, hdata_name);
+ HDATA_VAR(struct t_gui_filter, enabled, INTEGER, 0, NULL, NULL);
+ HDATA_VAR(struct t_gui_filter, name, STRING, 0, NULL, NULL);
+ HDATA_VAR(struct t_gui_filter, buffer_name, STRING, 0, NULL, NULL);
+ HDATA_VAR(struct t_gui_filter, num_buffers, INTEGER, 0, NULL, NULL);
+ HDATA_VAR(struct t_gui_filter, buffers, POINTER, 0, NULL, NULL);
+ HDATA_VAR(struct t_gui_filter, tags, STRING, 0, NULL, NULL);
+ HDATA_VAR(struct t_gui_filter, tags_count, INTEGER, 0, NULL, NULL);
+ HDATA_VAR(struct t_gui_filter, tags_array, STRING, 0, "tags_count", NULL);
+ HDATA_VAR(struct t_gui_filter, regex, STRING, 0, NULL, NULL);
+ HDATA_VAR(struct t_gui_filter, regex_prefix, POINTER, 0, NULL, NULL);
+ HDATA_VAR(struct t_gui_filter, regex_message, POINTER, 0, NULL, NULL);
+ HDATA_VAR(struct t_gui_filter, prev_filter, POINTER, 0, NULL, hdata_name);
+ HDATA_VAR(struct t_gui_filter, next_filter, POINTER, 0, NULL, hdata_name);
HDATA_LIST(gui_filters);
HDATA_LIST(last_gui_filter);
}