1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

php: add comments in code

This commit is contained in:
Sébastien Helleu
2017-09-03 15:28:04 +02:00
parent 586d2a0745
commit 43624c6d70
3 changed files with 217 additions and 81 deletions
+11
View File
@@ -58,6 +58,10 @@
static char weechat_php_empty_arg[1] = { '\0' };
/*
* Registers a PHP script.
*/
PHP_FUNCTION(weechat_register)
{
API_FUNC_INIT(weechat_register);
@@ -143,6 +147,13 @@ PHP_FUNCTION(weechat_register)
RETURN_TRUE;
}
/*
* Wrappers for functions in scripting API.
*
* For more info about these functions, look at their implementation in WeeChat
* core.
*/
static void weechat_php_cb(const void *pointer, void *data, void **func_argv, const char *func_types, int func_type, void *rc)
{
struct t_plugin_script *script;