summaryrefslogtreecommitdiffstats
path: root/src/web_service/telemetry_json.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-11 03:04:19 +0200
committerLioncash <mathew1800@gmail.com>2018-10-11 03:10:36 +0200
commita7725d354cf118b2299ed197d4b88ff48ebc1341 (patch)
tree7bf14f649e1dcd130975bde03f37877ece6c45ad /src/web_service/telemetry_json.h
parenttelemetry_json: Add missing override specifier to the destructor of TelemetryJson (diff)
downloadyuzu-a7725d354cf118b2299ed197d4b88ff48ebc1341.tar
yuzu-a7725d354cf118b2299ed197d4b88ff48ebc1341.tar.gz
yuzu-a7725d354cf118b2299ed197d4b88ff48ebc1341.tar.bz2
yuzu-a7725d354cf118b2299ed197d4b88ff48ebc1341.tar.lz
yuzu-a7725d354cf118b2299ed197d4b88ff48ebc1341.tar.xz
yuzu-a7725d354cf118b2299ed197d4b88ff48ebc1341.tar.zst
yuzu-a7725d354cf118b2299ed197d4b88ff48ebc1341.zip
Diffstat (limited to 'src/web_service/telemetry_json.h')
-rw-r--r--src/web_service/telemetry_json.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/web_service/telemetry_json.h b/src/web_service/telemetry_json.h
index 9a2aaa2c8..93371414a 100644
--- a/src/web_service/telemetry_json.h
+++ b/src/web_service/telemetry_json.h
@@ -4,10 +4,8 @@
#pragma once
-#include <array>
#include <chrono>
#include <string>
-#include <json.hpp>
#include "common/telemetry.h"
namespace WebService {
@@ -39,20 +37,8 @@ public:
void Complete() override;
private:
- nlohmann::json& TopSection() {
- return sections[static_cast<u8>(Telemetry::FieldType::None)];
- }
-
- template <class T>
- void Serialize(Telemetry::FieldType type, const std::string& name, T value);
-
- void SerializeSection(Telemetry::FieldType type, const std::string& name);
-
- nlohmann::json output;
- std::array<nlohmann::json, 7> sections;
- std::string host;
- std::string username;
- std::string token;
+ struct Impl;
+ std::unique_ptr<Impl> impl;
};
} // namespace WebService