Make it possible to port clients to the new api by just replacing

proxy_enabled with proxy_type.
This commit is contained in:
irungentoo 2014-12-26 20:33:34 -05:00
parent c2e394c5c2
commit efea858c91
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
2 changed files with 3 additions and 2 deletions

View File

@ -609,6 +609,7 @@ TCP_Client_Connection *new_TCP_connection(IP_Port ip_port, const uint8_t *public
uint8_t family = ip_port.ip.family;
TCP_Proxy_Info default_proxyinfo;
if (proxy_info == NULL) {
default_proxyinfo.proxy_type = TCP_PROXY_NONE;
proxy_info = &default_proxyinfo;

View File

@ -875,8 +875,8 @@ int tox_isconnected(const Tox *tox);
typedef enum {
TOX_PROXY_NONE,
TOX_PROXY_HTTP,
TOX_PROXY_SOCKS5
TOX_PROXY_SOCKS5,
TOX_PROXY_HTTP
} TOX_PROXY_TYPE;
typedef struct {