diff options
Diffstat (limited to 'src/gui/gui-completion.c')
-rw-r--r-- | src/gui/gui-completion.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c index 615785eea..c36ab940a 100644 --- a/src/gui/gui-completion.c +++ b/src/gui/gui-completion.c @@ -1510,6 +1510,30 @@ gui_completion_hdata_completion_cb (const void *pointer, void *data, } /* + * Returns hdata for completion word. + */ + +struct t_hdata * +gui_completion_hdata_completion_word_cb (const void *pointer, void *data, + const char *hdata_name) +{ + struct t_hdata *hdata; + + /* make C compiler happy */ + (void) pointer; + (void) data; + + hdata = hdata_new (NULL, hdata_name, NULL, NULL, 0, 0, NULL, NULL); + if (hdata) + { + HDATA_VAR(struct t_gui_completion_word, word, STRING, 0, NULL, NULL); + HDATA_VAR(struct t_gui_completion_word, nick_completion, CHAR, 0, NULL, NULL); + HDATA_VAR(struct t_gui_completion_word, count, INTEGER, 0, NULL, NULL); + } + return hdata; +} + +/* * Prints list of completion words in WeeChat log file (usually for crash dump). */ |