Audio 1.0.0
|
Github releases update checker. More...
#include <updater.h>
Public Member Functions | |
Updater (std::string url, struct curl_slist *headers) | |
Constructor. More... | |
~Updater () | |
Destructor. More... | |
std::string | getLatestVersion () |
Get GitHub latest release version code. More... | |
int | compareVersions (std::string v1, std::string v2) |
Compare 2 version codes. More... | |
Github releases update checker.
Updater::Updater | ( | std::string | url, |
struct curl_slist * | headers | ||
) |
Constructor.
url | Github repo url |
curl_slist | Request header list |
Updater::~Updater | ( | ) |
Destructor.
int Updater::compareVersions | ( | std::string | v1, |
std::string | v2 | ||
) |
Compare 2 version codes.
v1 | version code |
v2 | version code |
std::string Updater::getLatestVersion | ( | ) |
Get GitHub latest release version code.