diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-03 18:20:23 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-03 18:20:23 +0200 |
commit | 5ea7ea6555f42987e6025cab6954ac7c38d6e348 (patch) | |
tree | 47ac5c44f7e25e9705a1eff9c30515ac561ab433 /src/plugins/python | |
parent | 6526a0802dcd6c93b9ddbcb88545a86911688ca0 (diff) | |
download | weechat-5ea7ea6555f42987e6025cab6954ac7c38d6e348.zip |
core: rename type t_script_callback to t_plugin_script_cb
Diffstat (limited to 'src/plugins/python')
-rw-r--r-- | src/plugins/python/weechat-python-api.c | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/src/plugins/python/weechat-python-api.c b/src/plugins/python/weechat-python-api.c index a90749d97..ddb6ef9ca 100644 --- a/src/plugins/python/weechat-python-api.c +++ b/src/plugins/python/weechat-python-api.c @@ -832,12 +832,12 @@ int weechat_python_api_config_reload_cb (void *data, struct t_config_file *config_file) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[2]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -902,12 +902,12 @@ weechat_python_api_config_read_cb (void *data, struct t_config_section *section, const char *option_name, const char *value) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[5]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -949,12 +949,12 @@ weechat_python_api_config_section_write_cb (void *data, struct t_config_file *config_file, const char *section_name) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -993,12 +993,12 @@ weechat_python_api_config_section_write_default_cb (void *data, struct t_config_file *config_file, const char *section_name) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -1038,12 +1038,12 @@ weechat_python_api_config_section_create_option_cb (void *data, const char *option_name, const char *value) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[5]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -1086,12 +1086,12 @@ weechat_python_api_config_section_delete_option_cb (void *data, struct t_config_section *section, struct t_config_option *option) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[4]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -1220,12 +1220,12 @@ weechat_python_api_config_option_check_value_cb (void *data, struct t_config_option *option, const char *value) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -1262,12 +1262,12 @@ void weechat_python_api_config_option_change_cb (void *data, struct t_config_option *option) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[2]; char empty_arg[1] = { '\0' }; int *rc; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -1295,12 +1295,12 @@ void weechat_python_api_config_option_delete_cb (void *data, struct t_config_option *option) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[2]; char empty_arg[1] = { '\0' }; int *rc; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -2257,7 +2257,7 @@ int weechat_python_api_hook_command_cb (void *data, struct t_gui_buffer *buffer, int argc, char **argv, char **argv_eol) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }; int *rc, ret; @@ -2265,7 +2265,7 @@ weechat_python_api_hook_command_cb (void *data, struct t_gui_buffer *buffer, /* make C compiler happy */ (void) argv; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -2339,12 +2339,12 @@ int weechat_python_api_hook_command_run_cb (void *data, struct t_gui_buffer *buffer, const char *command) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -2407,12 +2407,12 @@ weechat_python_api_hook_command_run (PyObject *self, PyObject *args) int weechat_python_api_hook_timer_cb (void *data, int remaining_calls) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[2]; char str_remaining_calls[32], empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -2481,12 +2481,12 @@ weechat_python_api_hook_timer (PyObject *self, PyObject *args) int weechat_python_api_hook_fd_cb (void *data, int fd) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[2]; char str_fd[32], empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -2558,12 +2558,12 @@ weechat_python_api_hook_process_cb (void *data, const char *command, int return_code, const char *out, const char *err) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[5]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -2674,12 +2674,12 @@ int weechat_python_api_hook_connect_cb (void *data, int status, int gnutls_rc, const char *error, const char *ip_address) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[5]; char str_status[32], str_gnutls_rc[32], empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -2765,7 +2765,7 @@ weechat_python_api_hook_print_cb (void *data, struct t_gui_buffer *buffer, int displayed, int highlight, const char *prefix, const char *message) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[8]; char empty_arg[1] = { '\0' }; static char timebuffer[64]; @@ -2774,7 +2774,7 @@ weechat_python_api_hook_print_cb (void *data, struct t_gui_buffer *buffer, /* make C compiler happy */ (void) tags_count; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -2861,13 +2861,13 @@ int weechat_python_api_hook_signal_cb (void *data, const char *signal, const char *type_data, void *signal_data) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }; static char value_str[64]; int *rc, ret, free_needed; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -2990,12 +2990,12 @@ int weechat_python_api_hook_hsignal_cb (void *data, const char *signal, struct t_hashtable *hashtable) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -3087,12 +3087,12 @@ weechat_python_api_hook_hsignal_send (PyObject *self, PyObject *args) int weechat_python_api_hook_config_cb (void *data, const char *option, const char *value) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -3155,12 +3155,12 @@ weechat_python_api_hook_completion_cb (void *data, const char *completion_item, struct t_gui_buffer *buffer, struct t_gui_completion *completion) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[4]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -3257,11 +3257,11 @@ char * weechat_python_api_hook_modifier_cb (void *data, const char *modifier, const char *modifier_data, const char *string) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[4]; char empty_arg[1] = { '\0' }; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -3336,11 +3336,11 @@ const char * weechat_python_api_hook_info_cb (void *data, const char *info_name, const char *arguments) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -3397,12 +3397,12 @@ struct t_hashtable * weechat_python_api_hook_info_hashtable_cb (void *data, const char *info_name, struct t_hashtable *hashtable) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }; struct t_hashtable *ret_hashtable; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -3470,12 +3470,12 @@ struct t_infolist * weechat_python_api_hook_infolist_cb (void *data, const char *infolist_name, void *pointer, const char *arguments) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[4]; char empty_arg[1] = { '\0' }; struct t_infolist *result; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -3542,12 +3542,12 @@ struct t_hashtable * weechat_python_api_hook_focus_cb (void *data, struct t_hashtable *info) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[2]; char empty_arg[1] = { '\0' }; struct t_hashtable *ret_hashtable; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -3642,12 +3642,12 @@ int weechat_python_api_buffer_input_data_cb (void *data, struct t_gui_buffer *buffer, const char *input_data) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -3682,12 +3682,12 @@ weechat_python_api_buffer_input_data_cb (void *data, struct t_gui_buffer *buffer int weechat_python_api_buffer_close_cb (void *data, struct t_gui_buffer *buffer) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[2]; char empty_arg[1] = { '\0' }; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -4543,11 +4543,11 @@ char * weechat_python_api_bar_item_build_cb (void *data, struct t_gui_bar_item *item, struct t_gui_window *window) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[3]; char empty_arg[1] = { '\0' }, *ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { @@ -5670,12 +5670,12 @@ weechat_python_api_upgrade_read_cb (void *data, int object_id, struct t_infolist *infolist) { - struct t_script_callback *script_callback; + struct t_plugin_script_cb *script_callback; void *func_argv[4]; char empty_arg[1] = { '\0' }, str_object_id[32]; int *rc, ret; - script_callback = (struct t_script_callback *)data; + script_callback = (struct t_plugin_script_cb *)data; if (script_callback && script_callback->function && script_callback->function[0]) { |