summaryrefslogtreecommitdiff
path: root/src/gui/gui-line.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-line.c
parent658013a1e42967e498629367ac7d2d39ba7eec51 (diff)
downloadweechat-eab011073224b13ada61f80f3731e8dd459b7bfa.zip
core: add support of arrays in hdata variables
Diffstat (limited to 'src/gui/gui-line.c')
-rw-r--r--src/gui/gui-line.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c
index 50957d28c..eb9031747 100644
--- a/src/gui/gui-line.c
+++ b/src/gui/gui-line.c
@@ -1356,14 +1356,14 @@ gui_line_hdata_lines_cb (void *data, const char *hdata_name)
hdata = hdata_new (NULL, hdata_name, NULL, NULL);
if (hdata)
{
- HDATA_VAR(struct t_gui_lines, first_line, POINTER, "line");
- HDATA_VAR(struct t_gui_lines, last_line, POINTER, "line");
- HDATA_VAR(struct t_gui_lines, last_read_line, POINTER, "line");
- HDATA_VAR(struct t_gui_lines, lines_count, INTEGER, NULL);
- HDATA_VAR(struct t_gui_lines, first_line_not_read, INTEGER, NULL);
- HDATA_VAR(struct t_gui_lines, lines_hidden, INTEGER, NULL);
- HDATA_VAR(struct t_gui_lines, buffer_max_length, INTEGER, NULL);
- HDATA_VAR(struct t_gui_lines, prefix_max_length, INTEGER, NULL);
+ HDATA_VAR(struct t_gui_lines, first_line, POINTER, NULL, "line");
+ HDATA_VAR(struct t_gui_lines, last_line, POINTER, NULL, "line");
+ HDATA_VAR(struct t_gui_lines, last_read_line, POINTER, NULL, "line");
+ HDATA_VAR(struct t_gui_lines, lines_count, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_lines, first_line_not_read, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_lines, lines_hidden, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_lines, buffer_max_length, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_lines, prefix_max_length, INTEGER, NULL, NULL);
}
return hdata;
}
@@ -1383,9 +1383,9 @@ gui_line_hdata_line_cb (void *data, const char *hdata_name)
hdata = hdata_new (NULL, hdata_name, "prev_line", "next_line");
if (hdata)
{
- HDATA_VAR(struct t_gui_line, data, POINTER, "line_data");
- HDATA_VAR(struct t_gui_line, prev_line, POINTER, hdata_name);
- HDATA_VAR(struct t_gui_line, next_line, POINTER, hdata_name);
+ HDATA_VAR(struct t_gui_line, data, POINTER, NULL, "line_data");
+ HDATA_VAR(struct t_gui_line, prev_line, POINTER, NULL, hdata_name);
+ HDATA_VAR(struct t_gui_line, next_line, POINTER, NULL, hdata_name);
}
return hdata;
}
@@ -1405,19 +1405,19 @@ gui_line_hdata_line_data_cb (void *data, const char *hdata_name)
hdata = hdata_new (NULL, hdata_name, NULL, NULL);
if (hdata)
{
- HDATA_VAR(struct t_gui_line_data, buffer, POINTER, "buffer");
- HDATA_VAR(struct t_gui_line_data, y, INTEGER, NULL);
- HDATA_VAR(struct t_gui_line_data, date, TIME, NULL);
- HDATA_VAR(struct t_gui_line_data, date_printed, TIME, NULL);
- HDATA_VAR(struct t_gui_line_data, str_time, STRING, NULL);
- HDATA_VAR(struct t_gui_line_data, tags_count, INTEGER, NULL);
- HDATA_VAR(struct t_gui_line_data, tags_array, POINTER, NULL);
- HDATA_VAR(struct t_gui_line_data, displayed, CHAR, NULL);
- HDATA_VAR(struct t_gui_line_data, highlight, CHAR, NULL);
- HDATA_VAR(struct t_gui_line_data, refresh_needed, CHAR, NULL);
- HDATA_VAR(struct t_gui_line_data, prefix, STRING, NULL);
- HDATA_VAR(struct t_gui_line_data, prefix_length, INTEGER, NULL);
- HDATA_VAR(struct t_gui_line_data, message, STRING, NULL);
+ HDATA_VAR(struct t_gui_line_data, buffer, POINTER, NULL, "buffer");
+ HDATA_VAR(struct t_gui_line_data, y, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_line_data, date, TIME, NULL, NULL);
+ HDATA_VAR(struct t_gui_line_data, date_printed, TIME, NULL, NULL);
+ HDATA_VAR(struct t_gui_line_data, str_time, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_line_data, tags_count, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_line_data, tags_array, STRING, "tags_count", NULL);
+ HDATA_VAR(struct t_gui_line_data, displayed, CHAR, NULL, NULL);
+ HDATA_VAR(struct t_gui_line_data, highlight, CHAR, NULL, NULL);
+ HDATA_VAR(struct t_gui_line_data, refresh_needed, CHAR, NULL, NULL);
+ HDATA_VAR(struct t_gui_line_data, prefix, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_line_data, prefix_length, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_line_data, message, STRING, NULL, NULL);
}
return hdata;
}