summaryrefslogtreecommitdiff
path: root/src/plugins/plugin-script-api.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-02-21 07:06:01 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-03-16 20:42:18 +0100
commit66571a0b634ef28307f6d6ceef1ba29c091ca524 (patch)
tree08cc8a4eb2968952307dbfc394f51383f5dfc45e /src/plugins/plugin-script-api.h
parent7b8e5b36c0e894df40642b3ce993767844edc16b (diff)
downloadweechat-66571a0b634ef28307f6d6ceef1ba29c091ca524.zip
core: add configuration version, add API function config_set_version
Diffstat (limited to 'src/plugins/plugin-script-api.h')
-rw-r--r--src/plugins/plugin-script-api.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/plugin-script-api.h b/src/plugins/plugin-script-api.h
index b87ba76da..44cf8c179 100644
--- a/src/plugins/plugin-script-api.h
+++ b/src/plugins/plugin-script-api.h
@@ -37,6 +37,17 @@ extern struct t_config_file *plugin_script_api_config_new (struct t_weechat_plug
struct t_config_file *config_file),
const char *function,
const char *data);
+extern int plugin_script_api_config_set_version (struct t_weechat_plugin *weechat_plugin,
+ struct t_plugin_script *script,
+ struct t_config_file *config_file,
+ int version,
+ struct t_hashtable *(*callback_update)(const void *pointer,
+ void *data,
+ struct t_config_file *config_file,
+ int version_read,
+ struct t_hashtable *data_read),
+ const char *function,
+ const char *data);
extern struct t_config_section *plugin_script_api_config_new_section (struct t_weechat_plugin *weechat_plugin,
struct t_plugin_script *script,
struct t_config_file *config_file,