mistserver/src/controller/controller_license.h

18 lines
488 B
C++

#include <mist/json.h>
namespace Controller{
extern uint64_t exitDelay;
const JSON::Value & getLicense();
void initLicense();
bool isLicensed(); //checks/verifies license time
bool checkLicense(); //Call from Mainloop.
void updateLicense(const std::string & extra = ""); //retrieves update from license server
void licenseLoop(void * np);
void readLicense(uint64_t licId, const std::string & input, bool fromServer = false); //checks/interprets license
}