KiCad PCB EDA Suite
kicad_curl.cpp File Reference
#include <kicad_curl/kicad_curl.h>
#include <mutex>
#include <ki_exception.h>

Go to the source code of this file.

Functions

void init_locks ()
 
void kill_locks ()
 
static void at_terminate ()
 At process termination, using atexit() keeps the CURL stuff out of the singletops and PGM_BASE. More...
 
std::string GetKicadCurlVersion ()
 
std::string GetCurlLibVersion ()
 

Variables

static volatile bool s_initialized
 
static std::mutex s_lock
 

Function Documentation

◆ at_terminate()

static void at_terminate ( )
static

At process termination, using atexit() keeps the CURL stuff out of the singletops and PGM_BASE.

Definition at line 144 of file kicad_curl.cpp.

145 {
147 }
static void Cleanup()
Function Cleanup calls curl_global_cleanup for the application.
Definition: kicad_curl.cpp:176

References KICAD_CURL::Cleanup().

Referenced by KICAD_CURL::Cleanup().

◆ GetCurlLibVersion()

std::string GetCurlLibVersion ( )

Definition at line 246 of file kicad_curl.cpp.

247 {
248  return LIBCURL_VERSION;
249 }

Referenced by DIALOG_ABOUT::buildVersionInfoData().

◆ GetKicadCurlVersion()

std::string GetKicadCurlVersion ( )

Definition at line 241 of file kicad_curl.cpp.

242 {
243  return KICAD_CURL::GetVersion();
244 }
static const char * GetVersion()
Function GetVersion wrapper for curl_version().
Definition: kicad_curl.h:93

References KICAD_CURL::GetVersion().

Referenced by DIALOG_ABOUT::buildVersionInfoData().

◆ init_locks()

void init_locks ( )
inline

Definition at line 137 of file kicad_curl.cpp.

137 { /* dummy */ }

Referenced by KICAD_CURL::Init().

◆ kill_locks()

void kill_locks ( )
inline

Definition at line 138 of file kicad_curl.cpp.

138 { /* dummy */ }

Referenced by KICAD_CURL::Cleanup().

Variable Documentation

◆ s_initialized

volatile bool s_initialized
static

◆ s_lock

std::mutex s_lock
static

Definition at line 40 of file kicad_curl.cpp.

Referenced by KICAD_CURL::Cleanup(), and KICAD_CURL::Init().