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:
@@ -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)
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user