diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-10-23 22:07:18 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-10-23 22:07:18 +0000 |
commit | 32a7fbb76720a368e0f720e9d3828cf4b9644c6e (patch) | |
tree | bad0af01e800b789e4e457b8b411ad3abe140718 /src/plugins/plugins-config.h | |
parent | b7484eeea794a2ed8b1470bbe1169104db7d661f (diff) | |
download | weechat-32a7fbb76720a368e0f720e9d3828cf4b9644c6e.zip |
Added new plugins functions: set_config, get_plugin_config, set_plugin_config.
New file is used to store plugin variables (~/.weechat/plugins.rc)
Diffstat (limited to 'src/plugins/plugins-config.h')
-rw-r--r-- | src/plugins/plugins-config.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/plugins/plugins-config.h b/src/plugins/plugins-config.h new file mode 100644 index 000000000..d5797d71f --- /dev/null +++ b/src/plugins/plugins-config.h @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2003-2005 by FlashCode <flashcode@flashtux.org> + * See README for License detail, AUTHORS for developers list. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#ifndef __WEECHAT_PLUGINS_CONFIG_H +#define __WEECHAT_PLUGINS_CONFIG_H 1 + +#define WEECHAT_PLUGINS_CONFIG_NAME "plugins.rc" + +typedef struct t_plugin_option t_plugin_option; + +struct t_plugin_option +{ + char *option_name; /* option name in config file */ + char *value; /* value of option */ + t_plugin_option *prev_option; /* link to previous option */ + t_plugin_option *next_option; /* link to next option */ +}; + +extern t_plugin_option *plugin_config_search (t_weechat_plugin *, char *); +extern int plugin_config_set (t_weechat_plugin *, char *, char *); +extern void plugin_config_read (); +extern int plugin_config_write (); + +#endif /* plugins-config.h */ |