summaryrefslogtreecommitdiff
path: root/src/gui/gui-buffer.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-07-20 18:12:07 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-07-20 18:12:07 +0200
commiteab011073224b13ada61f80f3731e8dd459b7bfa (patch)
treebc05f9c4bd577a2c8ae7b8917098a4f6c54c8310 /src/gui/gui-buffer.c
parent658013a1e42967e498629367ac7d2d39ba7eec51 (diff)
downloadweechat-eab011073224b13ada61f80f3731e8dd459b7bfa.zip
core: add support of arrays in hdata variables
Diffstat (limited to 'src/gui/gui-buffer.c')
-rw-r--r--src/gui/gui-buffer.c146
1 files changed, 73 insertions, 73 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 5d6e0cf57..be418cc5a 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -3097,72 +3097,72 @@ gui_buffer_hdata_buffer_cb (void *data, const char *hdata_name)
hdata = hdata_new (NULL, hdata_name, "prev_buffer", "next_buffer");
if (hdata)
{
- HDATA_VAR(struct t_gui_buffer, plugin, POINTER, "plugin");
- HDATA_VAR(struct t_gui_buffer, plugin_name_for_upgrade, STRING, NULL);
- HDATA_VAR(struct t_gui_buffer, number, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, layout_number, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, layout_number_merge_order, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, name, STRING, NULL);
- HDATA_VAR(struct t_gui_buffer, full_name, STRING, NULL);
- HDATA_VAR(struct t_gui_buffer, short_name, STRING, NULL);
- HDATA_VAR(struct t_gui_buffer, type, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, notify, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, num_displayed, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, active, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, print_hooks_enabled, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, close_callback, POINTER, NULL);
- HDATA_VAR(struct t_gui_buffer, close_callback_data, POINTER, NULL);
- HDATA_VAR(struct t_gui_buffer, title, STRING, NULL);
- HDATA_VAR(struct t_gui_buffer, own_lines, POINTER, "lines");
- HDATA_VAR(struct t_gui_buffer, mixed_lines, POINTER, "lines");
- HDATA_VAR(struct t_gui_buffer, lines, POINTER, "lines");
- HDATA_VAR(struct t_gui_buffer, time_for_each_line, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, chat_refresh_needed, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, nicklist, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, nicklist_case_sensitive, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, nicklist_root, POINTER, "nick_group");
- HDATA_VAR(struct t_gui_buffer, nicklist_max_length, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, nicklist_display_groups, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, nicklist_visible_count, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, nickcmp_callback, POINTER, NULL);
- HDATA_VAR(struct t_gui_buffer, nickcmp_callback_data, POINTER, NULL);
- HDATA_VAR(struct t_gui_buffer, input, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, input_callback, POINTER, NULL);
- HDATA_VAR(struct t_gui_buffer, input_callback_data, POINTER, NULL);
- HDATA_VAR(struct t_gui_buffer, input_get_unknown_commands, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, input_buffer, STRING, NULL);
- HDATA_VAR(struct t_gui_buffer, input_buffer_alloc, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, input_buffer_size, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, input_buffer_length, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, input_buffer_pos, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, input_buffer_1st_display, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, input_undo_snap, POINTER, "input_undo");
- HDATA_VAR(struct t_gui_buffer, input_undo, POINTER, "input_undo");
- HDATA_VAR(struct t_gui_buffer, last_input_undo, POINTER, "input_undo");
- HDATA_VAR(struct t_gui_buffer, ptr_input_undo, POINTER, "input_undo");
- HDATA_VAR(struct t_gui_buffer, input_undo_count, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, completion, POINTER, "completion");
- HDATA_VAR(struct t_gui_buffer, history, POINTER, "history");
- HDATA_VAR(struct t_gui_buffer, last_history, POINTER, "history");
- HDATA_VAR(struct t_gui_buffer, ptr_history, POINTER, "history");
- HDATA_VAR(struct t_gui_buffer, num_history, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, text_search, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, text_search_exact, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, text_search_found, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, text_search_input, STRING, NULL);
- HDATA_VAR(struct t_gui_buffer, highlight_words, STRING, NULL);
- HDATA_VAR(struct t_gui_buffer, highlight_regex, STRING, NULL);
- HDATA_VAR(struct t_gui_buffer, highlight_regex_compiled, POINTER, NULL);
- HDATA_VAR(struct t_gui_buffer, highlight_tags, STRING, NULL);
- HDATA_VAR(struct t_gui_buffer, highlight_tags_count, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, highlight_tags_array, POINTER, NULL);
- HDATA_VAR(struct t_gui_buffer, hotlist_max_level_nicks, HASHTABLE, NULL);
- HDATA_VAR(struct t_gui_buffer, keys, POINTER, "key");
- HDATA_VAR(struct t_gui_buffer, last_key, POINTER, "key");
- HDATA_VAR(struct t_gui_buffer, keys_count, INTEGER, NULL);
- HDATA_VAR(struct t_gui_buffer, local_variables, HASHTABLE, NULL);
- HDATA_VAR(struct t_gui_buffer, prev_buffer, POINTER, hdata_name);
- HDATA_VAR(struct t_gui_buffer, next_buffer, POINTER, hdata_name);
+ HDATA_VAR(struct t_gui_buffer, plugin, POINTER, NULL, "plugin");
+ HDATA_VAR(struct t_gui_buffer, plugin_name_for_upgrade, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, number, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, layout_number, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, layout_number_merge_order, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, name, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, full_name, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, short_name, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, type, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, notify, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, num_displayed, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, active, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, print_hooks_enabled, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, close_callback, POINTER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, close_callback_data, POINTER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, title, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, own_lines, POINTER, NULL, "lines");
+ HDATA_VAR(struct t_gui_buffer, mixed_lines, POINTER, NULL, "lines");
+ HDATA_VAR(struct t_gui_buffer, lines, POINTER, NULL, "lines");
+ HDATA_VAR(struct t_gui_buffer, time_for_each_line, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, chat_refresh_needed, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, nicklist, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, nicklist_case_sensitive, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, nicklist_root, POINTER, NULL, "nick_group");
+ HDATA_VAR(struct t_gui_buffer, nicklist_max_length, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, nicklist_display_groups, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, nicklist_visible_count, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, nickcmp_callback, POINTER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, nickcmp_callback_data, POINTER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, input, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, input_callback, POINTER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, input_callback_data, POINTER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, input_get_unknown_commands, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, input_buffer, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, input_buffer_alloc, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, input_buffer_size, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, input_buffer_length, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, input_buffer_pos, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, input_buffer_1st_display, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, input_undo_snap, POINTER, NULL, "input_undo");
+ HDATA_VAR(struct t_gui_buffer, input_undo, POINTER, NULL, "input_undo");
+ HDATA_VAR(struct t_gui_buffer, last_input_undo, POINTER, NULL, "input_undo");
+ HDATA_VAR(struct t_gui_buffer, ptr_input_undo, POINTER, NULL, "input_undo");
+ HDATA_VAR(struct t_gui_buffer, input_undo_count, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, completion, POINTER, NULL, "completion");
+ HDATA_VAR(struct t_gui_buffer, history, POINTER, NULL, "history");
+ HDATA_VAR(struct t_gui_buffer, last_history, POINTER, NULL, "history");
+ HDATA_VAR(struct t_gui_buffer, ptr_history, POINTER, NULL, "history");
+ HDATA_VAR(struct t_gui_buffer, num_history, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, text_search, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, text_search_exact, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, text_search_found, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, text_search_input, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, highlight_words, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, highlight_regex, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, highlight_regex_compiled, POINTER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, highlight_tags, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, highlight_tags_count, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, highlight_tags_array, STRING, "highlight_tags_count", NULL);
+ HDATA_VAR(struct t_gui_buffer, hotlist_max_level_nicks, HASHTABLE, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, keys, POINTER, NULL, "key");
+ HDATA_VAR(struct t_gui_buffer, last_key, POINTER, NULL, "key");
+ HDATA_VAR(struct t_gui_buffer, keys_count, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, local_variables, HASHTABLE, NULL, NULL);
+ HDATA_VAR(struct t_gui_buffer, prev_buffer, POINTER, NULL, hdata_name);
+ HDATA_VAR(struct t_gui_buffer, next_buffer, POINTER, NULL, hdata_name);
HDATA_LIST(gui_buffers);
HDATA_LIST(last_gui_buffer);
HDATA_LIST(gui_buffer_last_displayed);
@@ -3185,10 +3185,10 @@ gui_buffer_hdata_input_undo_cb (void *data, const char *hdata_name)
hdata = hdata_new (NULL, hdata_name, "prev_undo", "next_undo");
if (hdata)
{
- HDATA_VAR(struct t_gui_input_undo, data, STRING, NULL);
- HDATA_VAR(struct t_gui_input_undo, pos, INTEGER, NULL);
- HDATA_VAR(struct t_gui_input_undo, prev_undo, POINTER, hdata_name);
- HDATA_VAR(struct t_gui_input_undo, next_undo, POINTER, hdata_name);
+ HDATA_VAR(struct t_gui_input_undo, data, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_input_undo, pos, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_input_undo, prev_undo, POINTER, NULL, hdata_name);
+ HDATA_VAR(struct t_gui_input_undo, next_undo, POINTER, NULL, hdata_name);
}
return hdata;
}
@@ -3208,9 +3208,9 @@ gui_buffer_hdata_buffer_visited_cb (void *data, const char *hdata_name)
hdata = hdata_new (NULL, hdata_name, "prev_buffer", "next_buffer");
if (hdata)
{
- HDATA_VAR(struct t_gui_buffer_visited, buffer, POINTER, "buffer");
- HDATA_VAR(struct t_gui_buffer_visited, prev_buffer, POINTER, hdata_name);
- HDATA_VAR(struct t_gui_buffer_visited, next_buffer, POINTER, hdata_name);
+ HDATA_VAR(struct t_gui_buffer_visited, buffer, POINTER, NULL, "buffer");
+ HDATA_VAR(struct t_gui_buffer_visited, prev_buffer, POINTER, NULL, hdata_name);
+ HDATA_VAR(struct t_gui_buffer_visited, next_buffer, POINTER, NULL, hdata_name);
HDATA_LIST(gui_buffers_visited);
HDATA_LIST(last_gui_buffer_visited);
}