1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +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;
+2
View File
@@ -134,6 +134,7 @@ PHP_FUNCTION(weechat_unhook_all);
PHP_FUNCTION(weechat_buffer_new);
PHP_FUNCTION(weechat_buffer_search);
PHP_FUNCTION(weechat_buffer_search_main);
PHP_FUNCTION(weechat_current_buffer);
PHP_FUNCTION(weechat_buffer_clear);
PHP_FUNCTION(weechat_buffer_close);
PHP_FUNCTION(weechat_buffer_merge);
@@ -144,6 +145,7 @@ PHP_FUNCTION(weechat_buffer_get_pointer);
PHP_FUNCTION(weechat_buffer_set);
PHP_FUNCTION(weechat_buffer_string_replace_local_var);
PHP_FUNCTION(weechat_buffer_match_list);
PHP_FUNCTION(weechat_current_window);
PHP_FUNCTION(weechat_window_search_with_buffer);
PHP_FUNCTION(weechat_window_get_integer);
PHP_FUNCTION(weechat_window_get_string);
+2
View File
@@ -179,6 +179,7 @@ const zend_function_entry weechat_functions[] = {
PHP_FE(weechat_buffer_new, NULL)
PHP_FE(weechat_buffer_search, NULL)
PHP_FE(weechat_buffer_search_main, NULL)
PHP_FE(weechat_current_buffer, NULL)
PHP_FE(weechat_buffer_clear, NULL)
PHP_FE(weechat_buffer_close, NULL)
PHP_FE(weechat_buffer_merge, NULL)
@@ -189,6 +190,7 @@ const zend_function_entry weechat_functions[] = {
PHP_FE(weechat_buffer_set, NULL)
PHP_FE(weechat_buffer_string_replace_local_var, NULL)
PHP_FE(weechat_buffer_match_list, NULL)
PHP_FE(weechat_current_window, NULL)
PHP_FE(weechat_window_search_with_buffer, NULL)
PHP_FE(weechat_window_get_integer, NULL)
PHP_FE(weechat_window_get_string, NULL)