![]() |
KiCad PCB EDA Suite
|
KICAD_CURL simple wrapper class to call curl_global_init and curl_global_cleanup for KiCad. More...
#include <kicad_curl.h>
Static Public Member Functions | |
static void | Init () |
Function Init calls curl_global_init for the application. More... | |
static void | Cleanup () |
Function Cleanup calls curl_global_cleanup for the application. More... | |
static const char * | GetVersion () |
Function GetVersion wrapper for curl_version(). More... | |
static std::string | GetSimpleVersion () |
Function GetSimpleVersion Reports back curl version only and SSL library support. More... | |
Friends | |
class | KICAD_CURL_EASY |
KICAD_CURL simple wrapper class to call curl_global_init and curl_global_cleanup for KiCad.
Definition at line 64 of file kicad_curl.h.
|
static |
Function Cleanup calls curl_global_cleanup for the application.
It must be used only after curl_global_init was called.
Definition at line 174 of file kicad_curl.cpp.
References at_terminate(), kill_locks(), s_initialized, and s_lock.
Referenced by at_terminate().
|
static |
Function GetSimpleVersion Reports back curl version only and SSL library support.
Definition at line 209 of file kicad_curl.cpp.
References Init(), and s_initialized.
|
inlinestatic |
Function GetVersion wrapper for curl_version().
Reports back a short string of loaded libraries.
IO_ERROR | on failure, hopefully with helpful text in it. |
Definition at line 93 of file kicad_curl.h.
Referenced by GetKicadCurlVersion().
|
static |
Function Init calls curl_global_init for the application.
It must be used only once and before any curl functions that perform requests.
IO_ERROR | on failure, hopefully with helpful text in it. |
Definition at line 150 of file kicad_curl.cpp.
References init_locks(), s_initialized, s_lock, and THROW_IO_ERROR.
Referenced by GetSimpleVersion(), and KICAD_CURL_EASY::KICAD_CURL_EASY().
|
friend |
Definition at line 66 of file kicad_curl.h.