KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KICAD_CURL Class Reference

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 const char * GetVersion ()
 Wrapper for curl_version().
 

Detailed Description

Simple wrapper class to call curl_global_init and curl_global_cleanup for KiCad.

Definition at line 60 of file kicad_curl.h.

Member Function Documentation

◆ Cleanup()

void KICAD_CURL::Cleanup ( )
static

Call curl_global_cleanup for the application.

It must be used only after curl_global_init was called.

Definition at line 42 of file kicad_curl.cpp.

Referenced by PGM_BASE::Destroy().

◆ GetVersion()

static const char * KICAD_CURL::GetVersion ( )
inlinestatic

Wrapper for curl_version().

Reports back a short string of loaded libraries.

Returns
String reported by libcurl and owned by it.
Exceptions
IO_ERRORon failure, hopefully with helpful text in it.

Definition at line 84 of file kicad_curl.h.

Referenced by GetKicadCurlVersion().

◆ Init()

void KICAD_CURL::Init ( )
static

Call curl_global_init for the application.

It must be used only once and before any curl functions that perform requests.

Returns
True if successful, false if CURL returned an error.
Exceptions
IO_ERRORon failure, hopefully with helpful text in it.

Definition at line 33 of file kicad_curl.cpp.

References THROW_IO_ERROR.

Referenced by PGM_BASE::InitPgm().


The documentation for this class was generated from the following files: