1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 03:03:12 +02:00

Add function "hook_completion_get_string" in plugin API

This commit is contained in:
Sebastien Helleu
2010-11-09 15:45:14 +01:00
parent 25879ca189
commit 8c129779ac
10 changed files with 224 additions and 6 deletions
+11
View File
@@ -2063,6 +2063,17 @@ hook_completion (struct t_weechat_plugin *plugin, const char *completion_item,
return new_hook;
}
/*
* hook_completion_get_string: get a completion property as string
*/
const char *
hook_completion_get_string (struct t_gui_completion *completion,
const char *property)
{
return gui_completion_get_string (completion, property);
}
/*
* hook_completion_list_add: add a word for a completion (called by plugins)
*/
+2
View File
@@ -439,6 +439,8 @@ extern struct t_hook *hook_completion (struct t_weechat_plugin *plugin,
const char *description,
t_hook_callback_completion *callback,
void *callback_data);
extern const char *hook_completion_get_string (struct t_gui_completion *completion,
const char *property);
extern void hook_completion_list_add (struct t_gui_completion *completion,
const char *word, int nick_completion,
const char *where);