Implemented proxy capabilities.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user