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

- Added options for /plugin command: autoload, reload, unload

- Added new plugin functions, for C plugins and scripts: set_config, get_plugin_config, set_plugin_config
- Added new script function: remove_handler
This commit is contained in:
Sebastien Helleu
2005-10-25 17:37:13 +00:00
parent 0e531f5e6a
commit 0f055b087a
42 changed files with 5638 additions and 2100 deletions
+10 -33
View File
@@ -216,7 +216,7 @@ weechat_plugin_infobar_printf (t_weechat_plugin *plugin, int time_displayed, cha
* weechat_plugin_msg_handler_add: add a message handler
*/
t_plugin_msg_handler *
t_plugin_handler *
weechat_plugin_msg_handler_add (t_weechat_plugin *plugin, char *message,
t_plugin_handler_func *handler_func,
char *handler_args, void *handler_pointer)
@@ -228,34 +228,11 @@ weechat_plugin_msg_handler_add (t_weechat_plugin *plugin, char *message,
return NULL;
}
/*
* weechat_plugin_msg_handler_remove: remove a WeeChat message handler
*/
void
weechat_plugin_msg_handler_remove (t_weechat_plugin *plugin,
t_plugin_msg_handler *msg_handler)
{
if (plugin && msg_handler)
plugin_msg_handler_remove (plugin, msg_handler);
}
/*
* weechat_plugin_msg_handler_remove_all: remove all WeeChat message handlers
*/
void
weechat_plugin_msg_handler_remove_all (t_weechat_plugin *plugin)
{
if (plugin)
plugin_msg_handler_remove_all (plugin);
}
/*
* weechat_plugin_cmd_handler_add: add a command handler
*/
t_plugin_cmd_handler *
t_plugin_handler *
weechat_plugin_cmd_handler_add (t_weechat_plugin *plugin, char *command,
char *description, char *arguments,
char *arguments_description,
@@ -272,26 +249,26 @@ weechat_plugin_cmd_handler_add (t_weechat_plugin *plugin, char *command,
}
/*
* weechat_cmd_plugin_handler_remove: remove a WeeChat command handler
* weechat_plugin_handler_remove: remove a WeeChat handler
*/
void
weechat_plugin_cmd_handler_remove (t_weechat_plugin *plugin,
t_plugin_cmd_handler *cmd_handler)
weechat_plugin_handler_remove (t_weechat_plugin *plugin,
t_plugin_handler *handler)
{
if (plugin && cmd_handler)
plugin_cmd_handler_remove (plugin, cmd_handler);
if (plugin && handler)
plugin_handler_remove (plugin, handler);
}
/*
* weechat_plugin_cmd_handler_remove_all: remove all WeeChat command handlers
* weechat_plugin_handler_remove_all: remove all WeeChat handlers
*/
void
weechat_plugin_cmd_handler_remove_all (t_weechat_plugin *plugin)
weechat_plugin_handler_remove_all (t_weechat_plugin *plugin)
{
if (plugin)
plugin_cmd_handler_remove_all (plugin);
plugin_handler_remove_all (plugin);
}
/*