1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

Added timer handler for plugins

This commit is contained in:
Sebastien Helleu
2006-02-19 10:43:47 +00:00
parent 484274d65f
commit 3a213f38ec
38 changed files with 4520 additions and 1980 deletions
+16
View File
@@ -277,6 +277,22 @@ weechat_plugin_cmd_handler_add (t_weechat_plugin *plugin, char *command,
return NULL;
}
/*
* weechat_plugin_timer_handler_add: add a timer handler
*/
t_plugin_handler *
weechat_plugin_timer_handler_add (t_weechat_plugin *plugin, int interval,
t_plugin_handler_func *handler_func,
char *handler_args, void *handler_pointer)
{
if (plugin && (interval >= 1) && handler_func)
return plugin_timer_handler_add (plugin, interval, handler_func,
handler_args, handler_pointer);
return NULL;
}
/*
* weechat_plugin_handler_remove: remove a WeeChat handler
*/