mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
Improved plugin API, most functions rewritten from scratch
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Copyright (c) 2003-2007 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __WEECHAT_PLUGIN_CONFIG_H
|
||||
#define __WEECHAT_PLUGIN_CONFIG_H 1
|
||||
|
||||
#include "../core/wee-config-option.h"
|
||||
|
||||
#define WEECHAT_PLUGIN_CONFIG_NAME "plugins.rc"
|
||||
|
||||
struct t_plugin_option
|
||||
{
|
||||
char *name; /* option name in config file */
|
||||
char *value; /* value of option */
|
||||
struct t_plugin_option *prev_option; /* link to previous option */
|
||||
struct t_plugin_option *next_option; /* link to next option */
|
||||
};
|
||||
|
||||
extern struct t_plugin_option *plugin_options;
|
||||
|
||||
extern struct t_plugin_option *plugin_config_search_internal (char *);
|
||||
extern struct t_plugin_option *plugin_config_search (char *, char *);
|
||||
extern int plugin_config_set_internal (char *, char *);
|
||||
extern int plugin_config_set (char *, char *, char *);
|
||||
extern int plugin_config_read_option (struct t_config_option *, char *, char *);
|
||||
extern int plugin_config_read ();
|
||||
extern int plugin_config_write_options (FILE *, char *,
|
||||
struct t_config_option *);
|
||||
extern int plugin_config_write ();
|
||||
|
||||
#endif /* plugin-config.h */
|
||||
Reference in New Issue
Block a user