summaryrefslogtreecommitdiffstats
path: root/src/web_service
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-18 20:21:50 +0200
committerLioncash <mathew1800@gmail.com>2020-08-18 21:08:32 +0200
commitf6bb905182b31a4ee4ccffe7d56b8743cf0ca3b4 (patch)
tree6ba40b5d404c76f1f8be55f0e592afab83ab6563 /src/web_service
parentMerge pull request #4381 from Morph1984/fix-open-folder-installed-title (diff)
downloadyuzu-f6bb905182b31a4ee4ccffe7d56b8743cf0ca3b4.tar
yuzu-f6bb905182b31a4ee4ccffe7d56b8743cf0ca3b4.tar.gz
yuzu-f6bb905182b31a4ee4ccffe7d56b8743cf0ca3b4.tar.bz2
yuzu-f6bb905182b31a4ee4ccffe7d56b8743cf0ca3b4.tar.lz
yuzu-f6bb905182b31a4ee4ccffe7d56b8743cf0ca3b4.tar.xz
yuzu-f6bb905182b31a4ee4ccffe7d56b8743cf0ca3b4.tar.zst
yuzu-f6bb905182b31a4ee4ccffe7d56b8743cf0ca3b4.zip
Diffstat (limited to 'src/web_service')
-rw-r--r--src/web_service/telemetry_json.cpp2
-rw-r--r--src/web_service/telemetry_json.h30
2 files changed, 17 insertions, 15 deletions
diff --git a/src/web_service/telemetry_json.cpp b/src/web_service/telemetry_json.cpp
index 7a480e33c..c89a3a0db 100644
--- a/src/web_service/telemetry_json.cpp
+++ b/src/web_service/telemetry_json.cpp
@@ -10,6 +10,8 @@
namespace WebService {
+namespace Telemetry = Common::Telemetry;
+
struct TelemetryJson::Impl {
Impl(std::string host, std::string username, std::string token)
: host{std::move(host)}, username{std::move(username)}, token{std::move(token)} {}
diff --git a/src/web_service/telemetry_json.h b/src/web_service/telemetry_json.h
index dfd202829..df51e00f8 100644
--- a/src/web_service/telemetry_json.h
+++ b/src/web_service/telemetry_json.h
@@ -14,25 +14,25 @@ namespace WebService {
* Implementation of VisitorInterface that serialized telemetry into JSON, and submits it to the
* yuzu web service
*/
-class TelemetryJson : public Telemetry::VisitorInterface {
+class TelemetryJson : public Common::Telemetry::VisitorInterface {
public:
TelemetryJson(std::string host, std::string username, std::string token);
~TelemetryJson() override;
- void Visit(const Telemetry::Field<bool>& field) override;
- void Visit(const Telemetry::Field<double>& field) override;
- void Visit(const Telemetry::Field<float>& field) override;
- void Visit(const Telemetry::Field<u8>& field) override;
- void Visit(const Telemetry::Field<u16>& field) override;
- void Visit(const Telemetry::Field<u32>& field) override;
- void Visit(const Telemetry::Field<u64>& field) override;
- void Visit(const Telemetry::Field<s8>& field) override;
- void Visit(const Telemetry::Field<s16>& field) override;
- void Visit(const Telemetry::Field<s32>& field) override;
- void Visit(const Telemetry::Field<s64>& field) override;
- void Visit(const Telemetry::Field<std::string>& field) override;
- void Visit(const Telemetry::Field<const char*>& field) override;
- void Visit(const Telemetry::Field<std::chrono::microseconds>& field) override;
+ void Visit(const Common::Telemetry::Field<bool>& field) override;
+ void Visit(const Common::Telemetry::Field<double>& field) override;
+ void Visit(const Common::Telemetry::Field<float>& field) override;
+ void Visit(const Common::Telemetry::Field<u8>& field) override;
+ void Visit(const Common::Telemetry::Field<u16>& field) override;
+ void Visit(const Common::Telemetry::Field<u32>& field) override;
+ void Visit(const Common::Telemetry::Field<u64>& field) override;
+ void Visit(const Common::Telemetry::Field<s8>& field) override;
+ void Visit(const Common::Telemetry::Field<s16>& field) override;
+ void Visit(const Common::Telemetry::Field<s32>& field) override;
+ void Visit(const Common::Telemetry::Field<s64>& field) override;
+ void Visit(const Common::Telemetry::Field<std::string>& field) override;
+ void Visit(const Common::Telemetry::Field<const char*>& field) override;
+ void Visit(const Common::Telemetry::Field<std::chrono::microseconds>& field) override;
void Complete() override;
bool SubmitTestcase() override;