1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 02:33:12 +02:00

Added plugin API function to get IRC color number by name

This commit is contained in:
Sebastien Helleu
2006-06-10 18:59:43 +00:00
parent 4e434e4fb3
commit 62059cb614
8 changed files with 108 additions and 0 deletions
+10
View File
@@ -26,12 +26,22 @@
#include "../irc/irc.h"
#include "../gui/gui.h"
typedef struct t_plugin_irc_color t_plugin_irc_color;
struct t_plugin_irc_color
{
int number;
char *name;
};
typedef int (t_weechat_init_func) (t_weechat_plugin *);
typedef void (t_weechat_end_func) (t_weechat_plugin *);
extern t_weechat_plugin *weechat_plugins;
extern t_weechat_plugin *last_weechat_plugin;
extern t_plugin_irc_color plugins_irc_colors[GUI_NUM_IRC_COLORS];
extern int plugin_find_server_channel (char *, char *,
t_irc_server **, t_irc_channel **);
extern void plugin_exec_on_files (t_weechat_plugin *, char *,