Audacity 3.2.0
Classes | Functions | Variables
audacity::network_manager::anonymous_namespace{CurlHandleManager.cpp} Namespace Reference

Classes

struct  CurlConfig
 

Functions

void GetOSString (std::ostringstream &output, const wxPlatformInfo &platformInfo)
 

Variables

BoolSetting EnableSSLValidationPref { "/CURL/EnableSSLValidation", true }
 
StringSetting ProxyStringPref { "/CURL/Proxy", "" }
 
static CurlConfig gCurlConfig
 

Function Documentation

◆ GetOSString()

void audacity::network_manager::anonymous_namespace{CurlHandleManager.cpp}::GetOSString ( std::ostringstream &  output,
const wxPlatformInfo &  platformInfo 
)

Definition at line 28 of file CurlHandleManager.cpp.

29{
30 const wxOperatingSystemId osID = platformInfo.GetOperatingSystemId ();
31
32 if (osID & wxOS_WINDOWS)
33 output << "Windows ";
34 else if (osID & wxOS_MAC)
35 output << "MacOS ";
36 else if (osID & wxOS_UNIX_LINUX)
37 output << "Linux ";
38 else if (osID & wxOS_UNIX_FREEBSD)
39 output << "FreeBSD ";
40 else if (osID & wxOS_UNIX_OPENBSD)
41 output << "OpenBSD ";
42 else
43 output << "Other ";
44
45 output <<
46 platformInfo.GetOSMajorVersion () <<
47 "_" <<
48 platformInfo.GetOSMinorVersion () <<
49 "_" <<
50 platformInfo.GetOSMicroVersion() <<
51 "; ";
52
53#if defined(__amd64__) || defined(__x86_64__) || defined(_M_X64)
54 output << "x64";
55#elif defined(__i386__) || defined(i386) || defined(_M_IX86) || defined(_X86_) || defined(__THW_INTEL)
56 output << "x86";
57#elif defined(__arm64__) || defined(__aarch64__) || defined(_M_ARM64)
58 output << "arm64";
59#elif defined(arm) || defined(__arm__) || defined(ARM) || defined(_ARM_)
60 output << "arm";
61#else
62 output << "unknown";
63#endif
64}

Referenced by audacity::network_manager::CurlHandleManager::CurlHandleManager().

Here is the caller graph for this function:

Variable Documentation

◆ EnableSSLValidationPref

BoolSetting audacity::network_manager::anonymous_namespace{CurlHandleManager.cpp}::EnableSSLValidationPref { "/CURL/EnableSSLValidation", true }

◆ gCurlConfig

CurlConfig audacity::network_manager::anonymous_namespace{CurlHandleManager.cpp}::gCurlConfig
static

◆ ProxyStringPref

StringSetting audacity::network_manager::anonymous_namespace{CurlHandleManager.cpp}::ProxyStringPref { "/CURL/Proxy", "" }