mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-31 03:48:40 +03:00
manually add protobuf generated files
This commit is contained in:
@@ -130,12 +130,9 @@ void LoginBlob::loadUserPass(const std::string& username,
|
||||
void LoginBlob::loadJson(const std::string& json) {
|
||||
#ifdef BELL_ONLY_CJSON
|
||||
cJSON* root = cJSON_Parse(json.c_str());
|
||||
cJSON* item = cJSON_GetObjectItem(root, "authType");
|
||||
this->authType = item->valueint;
|
||||
item = cJSON_GetObjectItem(root, "username");
|
||||
this->username = item->valuestring;
|
||||
item = cJSON_GetObjectItem(root, "authData");
|
||||
std::string authDataObject = item->valuestring;
|
||||
this->authType = cJSON_GetObjectItem(root, "authType")->valueint;
|
||||
this->username = cJSON_GetObjectItem(root, "username")->valuestring;
|
||||
std::string authDataObject = cJSON_GetObjectItem(root, "authData")->valuestring;
|
||||
cJSON_Delete(root);
|
||||
#else
|
||||
auto root = nlohmann::json::parse(json);
|
||||
|
||||
Reference in New Issue
Block a user