diff options
Diffstat (limited to 'src/plugins/php/weechat-php-api.c')
-rw-r--r-- | src/plugins/php/weechat-php-api.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/php/weechat-php-api.c b/src/plugins/php/weechat-php-api.c index f0acc514f..b79f36fc8 100644 --- a/src/plugins/php/weechat-php-api.c +++ b/src/plugins/php/weechat-php-api.c @@ -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; |