summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/guile/weechat-guile-api.c2
-rw-r--r--src/plugins/javascript/weechat-js-api.cpp2
-rw-r--r--src/plugins/lua/weechat-lua-api.c2
-rw-r--r--src/plugins/perl/weechat-perl-api.c2
-rw-r--r--src/plugins/plugin-script.c2
-rw-r--r--src/plugins/plugin.c2
-rw-r--r--src/plugins/python/weechat-python-api.c2
-rw-r--r--src/plugins/ruby/weechat-ruby-api.c2
-rw-r--r--src/plugins/tcl/weechat-tcl-api.c2
-rw-r--r--src/plugins/weechat-plugin.h10
10 files changed, 14 insertions, 14 deletions
diff --git a/src/plugins/guile/weechat-guile-api.c b/src/plugins/guile/weechat-guile-api.c
index 3b475d7be..32676fbd5 100644
--- a/src/plugins/guile/weechat-guile-api.c
+++ b/src/plugins/guile/weechat-guile-api.c
@@ -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;
}
diff --git a/src/plugins/javascript/weechat-js-api.cpp b/src/plugins/javascript/weechat-js-api.cpp
index a95259ff1..e2cad59f4 100644
--- a/src/plugins/javascript/weechat-js-api.cpp
+++ b/src/plugins/javascript/weechat-js-api.cpp
@@ -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;
}
diff --git a/src/plugins/lua/weechat-lua-api.c b/src/plugins/lua/weechat-lua-api.c
index 1900aed0b..893424034 100644
--- a/src/plugins/lua/weechat-lua-api.c
+++ b/src/plugins/lua/weechat-lua-api.c
@@ -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;
}
diff --git a/src/plugins/perl/weechat-perl-api.c b/src/plugins/perl/weechat-perl-api.c
index ccfa4997b..267d1982d 100644
--- a/src/plugins/perl/weechat-perl-api.c
+++ b/src/plugins/perl/weechat-perl-api.c
@@ -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;
}
diff --git a/src/plugins/plugin-script.c b/src/plugins/plugin-script.c
index 620ddba6d..4a2bc98d3 100644
--- a/src/plugins/plugin-script.c
+++ b/src/plugins/plugin-script.c
@@ -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)
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c
index 979ea1ff0..7a51698d2 100644
--- a/src/plugins/plugin.c
+++ b/src/plugins/plugin.c
@@ -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;
diff --git a/src/plugins/python/weechat-python-api.c b/src/plugins/python/weechat-python-api.c
index 7f6634c8a..fc9d05409 100644
--- a/src/plugins/python/weechat-python-api.c
+++ b/src/plugins/python/weechat-python-api.c
@@ -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;
}
diff --git a/src/plugins/ruby/weechat-ruby-api.c b/src/plugins/ruby/weechat-ruby-api.c
index 2598e9483..e3c57e385 100644
--- a/src/plugins/ruby/weechat-ruby-api.c
+++ b/src/plugins/ruby/weechat-ruby-api.c
@@ -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;
}
diff --git a/src/plugins/tcl/weechat-tcl-api.c b/src/plugins/tcl/weechat-tcl-api.c
index 31434ff45..078afd169 100644
--- a/src/plugins/tcl/weechat-tcl-api.c
+++ b/src/plugins/tcl/weechat-tcl-api.c
@@ -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;
}
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h
index 438c2c4c2..53171b920 100644
--- a/src/plugins/weechat-plugin.h
+++ b/src/plugins/weechat-plugin.h
@@ -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, \