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:
@@ -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 *,
|
||||
|
||||
Reference in New Issue
Block a user