diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-09-29 18:30:15 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-09-29 18:30:15 +0200 |
commit | 813e40632bc748447091ea8c693d31b378c2d520 (patch) | |
tree | a9f3778ab19408540f87dbfbeec249f698adbe96 /src/plugins/scripts/script-api.h | |
parent | 966541d4162d1ee9c30bbdf3143e3514bb52f728 (diff) | |
download | weechat-813e40632bc748447091ea8c693d31b378c2d520.zip |
Fix bug with arguments of function "config_new_option" in scripts API
Diffstat (limited to 'src/plugins/scripts/script-api.h')
-rw-r--r-- | src/plugins/scripts/script-api.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/plugins/scripts/script-api.h b/src/plugins/scripts/script-api.h index 2a7f9809a..17a4717a9 100644 --- a/src/plugins/scripts/script-api.h +++ b/src/plugins/scripts/script-api.h @@ -60,10 +60,17 @@ extern struct t_config_option *script_api_config_new_option (struct t_weechat_pl const char *type, const char *description, const char *string_values, - int min, int max, - const char *default_value, - void (*callback_change)(void *data), - const char *function); + int min, int max, const char *default_value, + void (*callback_check_value)(void *data, + struct t_config_option *option, + const char *value), + const char *function_check_value, + void (*callback_change)(void *data, + struct t_config_option *option), + const char *function_change, + void (*callback_delete)(void *data, + struct t_config_option *option), + const char *function_delete); extern void script_api_config_free (struct t_weechat_plugin *weechat_plugin, struct t_plugin_script *script, struct t_config_file *config_file); |