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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user