1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

api: add function completion_set

This commit is contained in:
Sébastien Helleu
2025-02-15 23:22:44 +01:00
parent 1b54cd24ed
commit c7d21a3ea6
25 changed files with 577 additions and 16 deletions
+17
View File
@@ -4482,6 +4482,22 @@ API_FUNC(completion_get_string)
API_RETURN_STRING(result);
}
API_FUNC(completion_set)
{
API_INIT_FUNC(1, "completion_set", "sss", API_RETURN_ERROR);
v8::String::Utf8Value completion(args[0]);
v8::String::Utf8Value property(args[1]);
v8::String::Utf8Value value(args[2]);
weechat_completion_set (
(struct t_gui_completion *)API_STR2PTR(*completion),
*property,
*value);
API_RETURN_OK;
}
API_FUNC(completion_list_add)
{
int nick_completion;
@@ -5539,6 +5555,7 @@ WeechatJsV8::loadLibs()
API_DEF_FUNC(completion_new);
API_DEF_FUNC(completion_search);
API_DEF_FUNC(completion_get_string);
API_DEF_FUNC(completion_set);
API_DEF_FUNC(completion_list_add);
API_DEF_FUNC(completion_free);
API_DEF_FUNC(info_get);