diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-12-03 18:03:10 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-12-03 18:03:10 +0100 |
commit | 2888d41425afc7e38238533a95930cf0f46cc10c (patch) | |
tree | 8364be89c534411d08ecb9f291f1d4d64d28e6f4 /src/plugins/plugin-api.h | |
parent | e0826e1ce7bcff9c0404da0f2fac05b7224aad2c (diff) | |
download | weechat-2888d41425afc7e38238533a95930cf0f46cc10c.zip |
Added alias plugin, added missing config file functions in plugins API
Diffstat (limited to 'src/plugins/plugin-api.h')
-rw-r--r-- | src/plugins/plugin-api.h | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/src/plugins/plugin-api.h b/src/plugins/plugin-api.h index 2b98ecac3..308ec330e 100644 --- a/src/plugins/plugin-api.h +++ b/src/plugins/plugin-api.h @@ -38,6 +38,10 @@ extern char **plugin_api_string_explode (struct t_weechat_plugin *, char *, char *, int, int, int *); extern void plugin_api_string_free_exploded (struct t_weechat_plugin *, char **); +extern char **plugin_api_string_split_command (struct t_weechat_plugin *, + char *, char); +extern void plugin_api_string_free_splitted_command (struct t_weechat_plugin *, + char **); /* directories */ extern int plugin_api_mkdir_home (struct t_weechat_plugin *, char *); @@ -45,20 +49,29 @@ extern void plugin_api_exec_on_files (struct t_weechat_plugin *, char *, int (*)(char *)); /* config */ -extern struct t_config_file *config_new (struct t_weechat_plugin *, char *); -extern struct t_config_section *config_new_section (struct t_weechat_plugin *, - void *, char *, - void (*)(void *, char *, char *), - void (*)(void *), - void (*)(void *)); -extern struct t_config_option *config_new_option (struct t_weechat_plugin *, - void *, char *, char *, - char *, char *, int, int, - char *, void (*)()); -extern char config_boolean (struct t_weechat_plugin *, void *); -extern int config_integer (struct t_weechat_plugin *, void *); -extern char *config_string (struct t_weechat_plugin *, void *); -extern int config_color (struct t_weechat_plugin *, void *); +extern struct t_config_file *plugin_api_config_new (struct t_weechat_plugin *, + char *); +extern struct t_config_section *plugin_api_config_new_section (struct t_weechat_plugin *, + void *, char *, + void (*)(void *, char *, char *), + void (*)(void *), + void (*)(void *)); +extern struct t_config_option *plugin_api_config_new_option (struct t_weechat_plugin *, + void *, char *, + char *, char *, + char *, int, int, + char *, + void (*)()); +extern char plugin_api_config_boolean (struct t_weechat_plugin *, void *); +extern int plugin_api_config_integer (struct t_weechat_plugin *, void *); +extern char *plugin_api_config_string (struct t_weechat_plugin *, void *); +extern int plugin_api_config_color (struct t_weechat_plugin *, void *); +extern int plugin_api_config_read (struct t_weechat_plugin *, void *); +extern int plugin_api_config_reload (struct t_weechat_plugin *, void *); +extern int plugin_api_config_write (struct t_weechat_plugin *, void *); +extern void plugin_api_config_write_line (struct t_weechat_plugin *, void *, + char *, char *); +extern void plugin_api_config_free (struct t_weechat_plugin *, void *); extern char *plugin_api_config_get (struct t_weechat_plugin *, char *); extern int plugin_api_config_set (struct t_weechat_plugin *, char *, char *); extern char *plugin_api_plugin_config_get (struct t_weechat_plugin *, char *); |