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

api: add missing function infolist_search_var() in script API (issue #484)

This commit is contained in:
Sébastien Helleu
2015-08-13 20:50:15 +02:00
parent 7033fdd0cb
commit 4716e81d4e
8 changed files with 132 additions and 0 deletions
+17
View File
@@ -4093,6 +4093,22 @@ weechat_guile_api_infolist_new_var_time (SCM item, SCM name, SCM value)
API_RETURN_STRING_FREE(result);
}
SCM
weechat_guile_api_infolist_search_var (SCM infolist, SCM name)
{
char *result;
SCM return_value;
API_INIT_FUNC(1, "infolist_search_var", API_RETURN_EMPTY);
if (!scm_is_string (infolist) || !scm_is_string (name))
API_WRONG_ARGS(API_RETURN_EMPTY);
result = API_PTR2STR(weechat_infolist_search_var (API_STR2PTR(API_SCM_TO_STRING(infolist)),
API_SCM_TO_STRING(name)));
API_RETURN_STRING_FREE(result);
}
SCM
weechat_guile_api_infolist_get (SCM name, SCM pointer, SCM arguments)
{
@@ -4860,6 +4876,7 @@ weechat_guile_api_module_init (void *data)
API_DEF_FUNC(infolist_new_var_string, 3);
API_DEF_FUNC(infolist_new_var_pointer, 3);
API_DEF_FUNC(infolist_new_var_time, 3);
API_DEF_FUNC(infolist_search_var, 2);
API_DEF_FUNC(infolist_get, 3);
API_DEF_FUNC(infolist_next, 1);
API_DEF_FUNC(infolist_prev, 1);