コード例 #1
0
ファイル: weechat-lua.c プロジェクト: jameslord/weechat
int
weechat_lua_timer_action_cb (void *data, int remaining_calls)
{
    /* make C compiler happy */
    (void) remaining_calls;

    if (data)
    {
        if (data == &lua_action_install_list)
        {
            plugin_script_action_install (weechat_lua_plugin,
                                          lua_scripts,
                                          &weechat_lua_unload,
                                          &weechat_lua_load,
                                          &lua_quiet,
                                          &lua_action_install_list);
        }
        else if (data == &lua_action_remove_list)
        {
            plugin_script_action_remove (weechat_lua_plugin,
                                         lua_scripts,
                                         &weechat_lua_unload,
                                         &lua_quiet,
                                         &lua_action_remove_list);
        }
    }

    return WEECHAT_RC_OK;
}
コード例 #2
0
int
dogechat_js_timer_action_cb (void *data, int remaining_calls)
{
    /* make C++ compiler happy */
    (void) remaining_calls;

    if (data)
    {
        if (data == &js_action_install_list)
        {
            plugin_script_action_install (dogechat_js_plugin,
                                          js_scripts,
                                          &dogechat_js_unload,
                                          &dogechat_js_load,
                                          &js_quiet,
                                          &js_action_install_list);
        }
        else if (data == &js_action_remove_list)
        {
            plugin_script_action_remove (dogechat_js_plugin,
                                         js_scripts,
                                         &dogechat_js_unload,
                                         &js_quiet,
                                         &js_action_remove_list);
        }
        else if (data == &js_action_autoload_list)
        {
            plugin_script_action_autoload (dogechat_js_plugin,
                                           &js_quiet,
                                           &js_action_autoload_list);
        }
    }

    return DOGECHAT_RC_OK;
}
コード例 #3
0
ファイル: weechat-js.cpp プロジェクト: mumixam/weechat
int
weechat_js_timer_action_cb (const void *pointer, void *data,
                            int remaining_calls)
{
    /* make C++ compiler happy */
    (void) data;
    (void) remaining_calls;

    if (pointer)
    {
        if (pointer == &js_action_install_list)
        {
            plugin_script_action_install (weechat_js_plugin,
                                          js_scripts,
                                          &weechat_js_unload,
                                          &weechat_js_load,
                                          &js_quiet,
                                          &js_action_install_list);
        }
        else if (pointer == &js_action_remove_list)
        {
            plugin_script_action_remove (weechat_js_plugin,
                                         js_scripts,
                                         &weechat_js_unload,
                                         &js_quiet,
                                         &js_action_remove_list);
        }
        else if (pointer == &js_action_autoload_list)
        {
            plugin_script_action_autoload (weechat_js_plugin,
                                           &js_quiet,
                                           &js_action_autoload_list);
        }
    }

    return WEECHAT_RC_OK;
}