KiCad PCB EDA Suite
kicad_curl.cpp File Reference
#include <kicad_curl/kicad_curl.h>
#include <ki_mutex.h>
#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 MUTEX s_lock
 

Function Documentation

static void at_terminate ( )
static

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

Definition at line 122 of file kicad_curl.cpp.

References KICAD_CURL::Cleanup().

Referenced by KICAD_CURL::Cleanup().

123 {
125 }
static void Cleanup()
Function Cleanup calls curl_global_cleanup for the application.
Definition: kicad_curl.cpp:154
std::string GetCurlLibVersion ( )

Definition at line 224 of file kicad_curl.cpp.

Referenced by DIALOG_ABOUT::buildVersionInfoData().

225 {
226  return LIBCURL_VERSION;
227 }
std::string GetKicadCurlVersion ( )

Definition at line 219 of file kicad_curl.cpp.

References KICAD_CURL::GetVersion().

Referenced by DIALOG_ABOUT::buildVersionInfoData().

220 {
221  return KICAD_CURL::GetVersion();
222 }
static const char * GetVersion()
Function GetVersion wrapper for curl_version().
Definition: kicad_curl.h:93
void init_locks ( )
inline

Definition at line 115 of file kicad_curl.cpp.

Referenced by KICAD_CURL::Init().

115 { /* dummy */ }
void kill_locks ( )
inline

Definition at line 116 of file kicad_curl.cpp.

Referenced by KICAD_CURL::Cleanup().

116 { /* dummy */ }

Variable Documentation

volatile bool s_initialized
static
MUTEX s_lock
static

Definition at line 40 of file kicad_curl.cpp.

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