diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-31 19:01:52 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-31 19:01:52 +0300 |
commit | 2600097dcc6e357d4d8df6105e9afb66b6d4b296 (patch) | |
tree | fe6a1f8a777531ef1a28d373301dacdfc4854544 /include/m_netlib.h | |
parent | 5f9ab0cf3c13bd2a0cae62bd9c5427ad302ac540 (diff) |
- NUF_HTTPGATEWAY: unused option removed;
- NETLIBUSER::szDescriptiveName replaced with MAllStrings;
- code cleaning.
Diffstat (limited to 'include/m_netlib.h')
-rw-r--r-- | include/m_netlib.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/m_netlib.h b/include/m_netlib.h index 7f71da3dd3..e2b15ab90b 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -64,11 +64,8 @@ typedef PBYTE (*NETLIBHTTPGATEWAYUNWRAPRECVPROC)(NETLIBHTTPREQUEST *nlhr, PBYTE struct NETLIBUSER
{
- char *szSettingsModule; // used for db settings and log
- union {
- char *szDescriptiveName; // used in options dialog, already translated
- wchar_t *ptszDescriptiveName;
- };
+ char *szSettingsModule; // used for db settings and log
+ MAllStrings szDescriptiveName; // used in options dialog, already translated
DWORD flags;
char *szHttpGatewayHello;
char *szHttpGatewayUserAgent; // can be NULL to send no user-agent, also used by HTTPS proxies
@@ -76,12 +73,11 @@ struct NETLIBUSER NETLIBHTTPGATEWAYBEGINPROC pfnHttpGatewayBegin; // can be NULL if no beginning required
NETLIBHTTPGATEWAYWRAPSENDPROC pfnHttpGatewayWrapSend; // can be NULL if no wrapping required
NETLIBHTTPGATEWAYUNWRAPRECVPROC pfnHttpGatewayUnwrapRecv; // can be NULL if no wrapping required
- int minIncomingPorts; // only if NUF_INCOMING. Will be used for validation of user input.
+ int minIncomingPorts; // only if NUF_INCOMING. Will be used for validation of user input.
};
#define NUF_INCOMING 0x01 // binds incoming ports
#define NUF_OUTGOING 0x02 // makes outgoing plain connections
-#define NUF_HTTPGATEWAY 0x04 // can use HTTP gateway for plain sockets. ???HttpGateway* are valid. Enables the HTTP proxy option in options.
#define NUF_NOOPTIONS 0x08 // don't create an options page for this. szDescriptiveName is never used.
#define NUF_HTTPCONNS 0x10 // at least some connections are made for HTTP communication. Enables the HTTP proxy option in options.
#define NUF_NOHTTPSOPTION 0x20 // disable the HTTPS proxy option in options. Use this if all communication is HTTP.
|