summaryrefslogtreecommitdiff
path: root/src/plugins/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/plugin.h')
-rw-r--r--src/plugins/plugin.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/plugins/plugin.h b/src/plugins/plugin.h
index 63e725d7c..cff9183fa 100644
--- a/src/plugins/plugin.h
+++ b/src/plugins/plugin.h
@@ -22,25 +22,23 @@
#include "weechat-plugin.h"
-typedef int (t_weechat_init_func) (struct t_weechat_plugin *);
-typedef void (t_weechat_end_func) (struct t_weechat_plugin *);
+typedef int (t_weechat_init_func) (struct t_weechat_plugin *plugin);
+typedef void (t_weechat_end_func) (struct t_weechat_plugin *plugin);
extern struct t_weechat_plugin *weechat_plugins;
extern struct t_weechat_plugin *last_weechat_plugin;
//extern t_plugin_irc_color plugins_irc_colors[GUI_NUM_IRC_COLORS];
-extern void plugin_exec_on_files (struct t_weechat_plugin *, char *,
- int (*)(struct t_weechat_plugin *, char *));
-extern struct t_weechat_plugin *plugin_search (char *);
-extern struct t_weechat_plugin *plugin_load (char *);
+extern struct t_weechat_plugin *plugin_search (char *name);
+extern struct t_weechat_plugin *plugin_load (char *filename);
extern void plugin_auto_load ();
-extern void plugin_remove (struct t_weechat_plugin *);
-extern void plugin_unload (struct t_weechat_plugin *);
-extern void plugin_unload_name (char *);
+extern void plugin_remove (struct t_weechat_plugin *plugin);
+extern void plugin_unload (struct t_weechat_plugin *plugin);
+extern void plugin_unload_name (char *name);
extern void plugin_unload_all ();
-extern void plugin_reload_name (char *);
-extern void plugin_init (int);
+extern void plugin_reload_name (char *name);
+extern void plugin_init (int auto_load);
extern void plugin_end ();
extern void plugin_print_log ();