1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

php: add missing functions current_buffer and current_window

This commit is contained in:
Sébastien Helleu
2017-09-06 20:07:26 +02:00
parent 776f8e2725
commit 48c9fbec35
3 changed files with 32 additions and 0 deletions
+28
View File
@@ -3195,6 +3195,20 @@ PHP_FUNCTION(weechat_buffer_search_main)
char *__retstr = API_PTR2STR(retval); SAFE_RETURN_STRING(__retstr);
}
PHP_FUNCTION(weechat_current_buffer)
{
struct t_gui_buffer *retval;
API_FUNC_INIT(weechat_current_buffer);
if (zend_parse_parameters_none () == FAILURE)
{
return;
}
retval = weechat_current_buffer ();
char *__retstr = API_PTR2STR(retval); SAFE_RETURN_STRING(__retstr);
}
PHP_FUNCTION(weechat_buffer_clear)
{
zend_string *z_buffer;
@@ -3388,6 +3402,20 @@ PHP_FUNCTION(weechat_buffer_match_list)
RETURN_LONG(retval);
}
PHP_FUNCTION(weechat_current_window)
{
struct t_gui_window *retval;
API_FUNC_INIT(weechat_current_window);
if (zend_parse_parameters_none () == FAILURE)
{
return;
}
retval = weechat_current_window ();
char *__retstr = API_PTR2STR(retval); SAFE_RETURN_STRING(__retstr);
}
PHP_FUNCTION(weechat_window_search_with_buffer)
{
zend_string *z_buffer;