From 337908e9ef9d77d45b66bb22ca901e19df95085e Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 14 Jan 2008 11:18:39 +0100 Subject: Update of translations for scripts, fix bugs and code factorized in script plugins --- src/plugins/scripts/script.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/plugins/scripts/script.h') diff --git a/src/plugins/scripts/script.h b/src/plugins/scripts/script.h index 0891ac4da..59ee51eef 100644 --- a/src/plugins/scripts/script.h +++ b/src/plugins/scripts/script.h @@ -56,17 +56,24 @@ struct t_plugin_script struct t_plugin_script *next_script; /* link to next script */ }; -extern void script_init (struct t_weechat_plugin *weechat_plugin); +extern void script_init (struct t_weechat_plugin *weechat_plugin, + int (*callback_command)(void *data, + struct t_gui_buffer *buffer, + int argc, char **argv, + char **argv_eol), + int (*callback_signal_dump)(void *data, char *signal, + char *type_data, + void *signal_data), + int (*callback_load_file)(void *data, char *filename)); extern char *script_pointer_to_string (void *pointer); extern void *script_string_to_pointer (char *pointer_str); extern void script_auto_load (struct t_weechat_plugin *weechat_plugin, - char *language, int (*callback)(void *data, char *filename)); extern struct t_plugin_script *script_search (struct t_weechat_plugin *weechat_plugin, struct t_plugin_script *scripts, char *name); extern char *script_search_full_name (struct t_weechat_plugin *weechat_plugin, - char *language, char *filename); + char *filename); extern struct t_plugin_script *script_add (struct t_weechat_plugin *weechat_plugin, struct t_plugin_script **scripts, char *filename, char *name, @@ -76,6 +83,9 @@ extern struct t_plugin_script *script_add (struct t_weechat_plugin *weechat_plug extern void script_remove (struct t_weechat_plugin *weechat_plugin, struct t_plugin_script **scripts, struct t_plugin_script *script); +extern void script_display_list (struct t_weechat_plugin *weechat_plugin, + struct t_plugin_script *scripts, + char *name, int full); extern void script_print_log (struct t_weechat_plugin *weechat_plugin, struct t_plugin_script *scripts); -- cgit v1.2.3