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

Replace constants by enums for config file values

This commit is contained in:
Sebastien Helleu
2009-04-24 21:01:38 +02:00
parent 9303884613
commit 5181c64486
2 changed files with 18 additions and 11 deletions
+12 -7
View File
@@ -22,14 +22,19 @@
#define IRC_CONFIG_NAME "irc"
#define IRC_CONFIG_NICK_COMPLETION_SMART_OFF 0
#define IRC_CONFIG_NICK_COMPLETION_SMART_SPEAKERS 1
#define IRC_CONFIG_NICK_COMPLETION_SMART_SPEAKERS_HIGHLIGHTS 2
#define IRC_CONFIG_DISPLAY_AWAY_OFF 0
#define IRC_CONFIG_DISPLAY_AWAY_LOCAL 1
#define IRC_CONFIG_DISPLAY_AWAY_CHANNEL 2
enum t_irc_config_nick_completion
{
IRC_CONFIG_NICK_COMPLETION_SMART_OFF = 0,
IRC_CONFIG_NICK_COMPLETION_SMART_SPEAKERS,
IRC_CONFIG_NICK_COMPLETION_SMART_SPEAKERS_HIGHLIGHTS,
};
enum t_irc_config_display_away
{
IRC_CONFIG_DISPLAY_AWAY_OFF = 0,
IRC_CONFIG_DISPLAY_AWAY_LOCAL,
IRC_CONFIG_DISPLAY_AWAY_CHANNEL,
};
extern struct t_config_file *irc_config_file;
extern struct t_config_section *irc_config_section_server_default;
+6 -4
View File
@@ -22,10 +22,12 @@
#define JABBER_CONFIG_NAME "jabber"
#define JABBER_CONFIG_DISPLAY_AWAY_OFF 0
#define JABBER_CONFIG_DISPLAY_AWAY_LOCAL 1
#define JABBER_CONFIG_DISPLAY_AWAY_MUC 2
enum t_jabber_config_display_away
{
JABBER_CONFIG_DISPLAY_AWAY_OFF = 0,
JABBER_CONFIG_DISPLAY_AWAY_LOCAL,
JABBER_CONFIG_DISPLAY_AWAY_MUC,
};
extern struct t_config_file *jabber_config_file;
extern struct t_config_section *jabber_config_section_server_default;