Implemented proxy capabilities.

This commit is contained in:
Håvard Pettersson 2014-10-11 10:24:25 +02:00
parent 70959e3d6e
commit ab1cef34fc
3 changed files with 71 additions and 30 deletions

View file

@ -34,6 +34,7 @@ enum t_twc_profile_option
TWC_PROFILE_OPTION_PROXY_ADDRESS,
TWC_PROFILE_OPTION_PROXY_PORT,
TWC_PROFILE_OPTION_PROXY_ENABLED,
TWC_PROFILE_OPTION_UDP_DISABLED,
TWC_PROFILE_NUM_OPTIONS,
};
@ -56,6 +57,21 @@ struct t_twc_profile
extern struct t_twc_list *twc_profiles;
#define TWC_PROFILE_OPTION_BOOLEAN(profile, index) \
((!weechat_config_option_is_null(profile->options[index])) ? \
weechat_config_boolean(profile->options[index]) : \
weechat_config_boolean_default(profile->options[index])) \
#define TWC_PROFILE_OPTION_INTEGER(profile, index) \
((!weechat_config_option_is_null(profile->options[index])) ? \
weechat_config_integer(profile->options[index]) : \
weechat_config_integer_default(profile->options[index])) \
#define TWC_PROFILE_OPTION_STRING(profile, index) \
((!weechat_config_option_is_null(profile->options[index])) ? \
weechat_config_string(profile->options[index]) : \
weechat_config_string_default(profile->options[index])) \
void
twc_profile_init();