mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 14:56:39 +02:00
api: rename function unhook_all_plugin to unhook_all
This commit is contained in:
@@ -3120,7 +3120,7 @@ weechat_guile_api_unhook_all ()
|
||||
{
|
||||
API_INIT_FUNC(1, "unhook_all", API_RETURN_ERROR);
|
||||
|
||||
weechat_unhook_all_plugin (guile_current_script->name);
|
||||
weechat_unhook_all (guile_current_script->name);
|
||||
|
||||
API_RETURN_OK;
|
||||
}
|
||||
|
||||
@@ -3047,7 +3047,7 @@ API_FUNC(unhook_all)
|
||||
|
||||
v8::String::Utf8Value hook(args[0]);
|
||||
|
||||
weechat_unhook_all_plugin (js_current_script->name);
|
||||
weechat_unhook_all (js_current_script->name);
|
||||
|
||||
API_RETURN_OK;
|
||||
}
|
||||
|
||||
@@ -3254,7 +3254,7 @@ API_FUNC(unhook_all)
|
||||
{
|
||||
API_INIT_FUNC(1, "unhook_all", API_RETURN_ERROR);
|
||||
|
||||
weechat_unhook_all_plugin (lua_current_script->name);
|
||||
weechat_unhook_all (lua_current_script->name);
|
||||
|
||||
API_RETURN_OK;
|
||||
}
|
||||
|
||||
@@ -3182,7 +3182,7 @@ API_FUNC(unhook_all)
|
||||
|
||||
API_INIT_FUNC(1, "unhook_all", API_RETURN_ERROR);
|
||||
|
||||
weechat_unhook_all_plugin (perl_current_script->name);
|
||||
weechat_unhook_all (perl_current_script->name);
|
||||
|
||||
API_RETURN_OK;
|
||||
}
|
||||
|
||||
@@ -928,7 +928,7 @@ plugin_script_remove (struct t_weechat_plugin *weechat_plugin,
|
||||
plugin_script_remove_configs (weechat_plugin, script);
|
||||
|
||||
/* remove all hooks created by this script */
|
||||
weechat_unhook_all_plugin (script->name);
|
||||
weechat_unhook_all (script->name);
|
||||
|
||||
/* free data */
|
||||
if (script->filename)
|
||||
|
||||
@@ -775,7 +775,7 @@ plugin_load (const char *filename, int init_plugin, int argc, char **argv)
|
||||
new_plugin->hook_focus = &hook_focus;
|
||||
new_plugin->hook_set = &hook_set;
|
||||
new_plugin->unhook = &unhook;
|
||||
new_plugin->unhook_all_plugin = &unhook_all_plugin;
|
||||
new_plugin->unhook_all = &unhook_all_plugin;
|
||||
|
||||
new_plugin->buffer_new = &gui_buffer_new;
|
||||
new_plugin->buffer_search = &gui_buffer_search_by_name;
|
||||
|
||||
@@ -3224,7 +3224,7 @@ API_FUNC(unhook_all)
|
||||
|
||||
API_INIT_FUNC(1, "unhook_all", API_RETURN_ERROR);
|
||||
|
||||
weechat_unhook_all_plugin (python_current_script->name);
|
||||
weechat_unhook_all (python_current_script->name);
|
||||
|
||||
API_RETURN_OK;
|
||||
}
|
||||
|
||||
@@ -3830,7 +3830,7 @@ weechat_ruby_api_unhook_all (VALUE class)
|
||||
{
|
||||
API_INIT_FUNC(1, "unhook_all", API_RETURN_ERROR);
|
||||
|
||||
weechat_unhook_all_plugin (ruby_current_script->name);
|
||||
weechat_unhook_all (ruby_current_script->name);
|
||||
|
||||
API_RETURN_OK;
|
||||
}
|
||||
|
||||
@@ -3474,7 +3474,7 @@ API_FUNC(unhook_all)
|
||||
|
||||
API_INIT_FUNC(1, "unhook_all", API_RETURN_ERROR);
|
||||
|
||||
weechat_unhook_all_plugin (tcl_current_script->name);
|
||||
weechat_unhook_all (tcl_current_script->name);
|
||||
|
||||
API_RETURN_OK;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ struct timeval;
|
||||
* please change the date with current one; for a second change at same
|
||||
* date, increment the 01, otherwise please keep 01.
|
||||
*/
|
||||
#define WEECHAT_PLUGIN_API_VERSION "20160321-01"
|
||||
#define WEECHAT_PLUGIN_API_VERSION "20160324-01"
|
||||
|
||||
/* macros for defining plugin infos */
|
||||
#define WEECHAT_PLUGIN_NAME(__name) \
|
||||
@@ -785,8 +785,8 @@ struct t_weechat_plugin
|
||||
void (*hook_set) (struct t_hook *hook, const char *property,
|
||||
const char *value);
|
||||
void (*unhook) (struct t_hook *hook);
|
||||
void (*unhook_all_plugin) (struct t_weechat_plugin *plugin,
|
||||
const char *subplugin);
|
||||
void (*unhook_all) (struct t_weechat_plugin *plugin,
|
||||
const char *subplugin);
|
||||
|
||||
/* buffers */
|
||||
struct t_gui_buffer *(*buffer_new) (struct t_weechat_plugin *plugin,
|
||||
@@ -1632,8 +1632,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
|
||||
(weechat_plugin->hook_set)(__hook, __property, __value)
|
||||
#define weechat_unhook(__hook) \
|
||||
(weechat_plugin->unhook)( __hook)
|
||||
#define weechat_unhook_all_plugin(__subplugin) \
|
||||
(weechat_plugin->unhook_all_plugin)(weechat_plugin, __subplugin)
|
||||
#define weechat_unhook_all(__subplugin) \
|
||||
(weechat_plugin->unhook_all)(weechat_plugin, __subplugin)
|
||||
|
||||
/* buffers */
|
||||
#define weechat_buffer_new(__name, __input_callback, \
|
||||
|
||||
Reference in New Issue
Block a user