mirror of
https://github.com/textmate/textmate.git
synced 2026-04-06 03:01:29 -04:00
This is for updating bundles and itself plus posting crash reports. It now also ignores unknown proxy types.
22 lines
644 B
C++
22 lines
644 B
C++
#ifndef PROXY_H_S8ZWZPU8
|
|
#define PROXY_H_S8ZWZPU8
|
|
|
|
#include <oak/misc.h>
|
|
|
|
struct proxy_settings_t
|
|
{
|
|
proxy_settings_t (bool enabled = false, std::string const& server = NULL_STR, long port = 0, std::string const& user = NULL_STR, std::string const& password = NULL_STR) : enabled(enabled), server(server), port(port), user(user), password(password) { }
|
|
explicit operator bool () const { return enabled; }
|
|
|
|
bool enabled;
|
|
bool socks = false;
|
|
std::string server;
|
|
long port;
|
|
std::string user;
|
|
std::string password;
|
|
};
|
|
|
|
PUBLIC proxy_settings_t get_proxy_settings (std::string const& url);
|
|
|
|
#endif /* end of include guard: PROXY_H_S8ZWZPU8 */
|