| 
    KiCad PCB EDA Suite
    
   | 
 
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 () | 
| Call curl_global_init for the application.   | |
| static void | Cleanup () | 
| Call curl_global_cleanup for the application.   | |
| static std::shared_mutex & | Mutex () | 
| Returns the mutex for shared locking when performing curl operations.   | |
| static bool | IsShuttingDown () | 
| Returns true if all curl operations should terminate.   | |
| static const char * | GetVersion () | 
| Wrapper for curl_version().   | |
Simple wrapper class to call curl_global_init and curl_global_cleanup for KiCad.
Definition at line 61 of file kicad_curl.h.
      
  | 
  static | 
Call curl_global_cleanup for the application.
It must be used only after curl_global_init was called.
Definition at line 48 of file kicad_curl.cpp.
References s_curlMutex, and s_curlShuttingDown.
Referenced by PGM_BASE::Destroy().
      
  | 
  inlinestatic | 
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 96 of file kicad_curl.h.
Referenced by GetKicadCurlVersion().
      
  | 
  static | 
Call 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 39 of file kicad_curl.cpp.
References s_curlShuttingDown, and THROW_IO_ERROR.
Referenced by PGM_BASE::InitPgm().
      
  | 
  static | 
Returns true if all curl operations should terminate.
Definition at line 64 of file kicad_curl.cpp.
References s_curlShuttingDown.
      
  | 
  static | 
Returns the mutex for shared locking when performing curl operations.
Unique locking is performed when shutting down.
Definition at line 58 of file kicad_curl.cpp.
References s_curlMutex.