summaryrefslogtreecommitdiff
path: root/src/core/telemetry_session.h
diff options
context:
space:
mode:
authorGravatar fearlessTobi2018-09-16 20:05:51 +0200
committerGravatar fearlessTobi2018-10-02 15:30:48 +0200
commit4d139943f2407144d5f8e3dc5a673f24850d43d0 (patch)
treebe24285a32c2b72b9756b69fd614f3d45c70ff41 /src/core/telemetry_session.h
parentAdd submodules (diff)
downloadyuzu-4d139943f2407144d5f8e3dc5a673f24850d43d0.tar.gz
yuzu-4d139943f2407144d5f8e3dc5a673f24850d43d0.tar.xz
yuzu-4d139943f2407144d5f8e3dc5a673f24850d43d0.zip
Port web_service from Citra
Diffstat (limited to 'src/core/telemetry_session.h')
-rw-r--r--src/core/telemetry_session.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/telemetry_session.h b/src/core/telemetry_session.h
index dbc4f8bd4..e6976ad45 100644
--- a/src/core/telemetry_session.h
+++ b/src/core/telemetry_session.h
@@ -4,7 +4,6 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <future>
8#include <memory> 7#include <memory>
9#include "common/telemetry.h" 8#include "common/telemetry.h"
10 9
@@ -31,6 +30,8 @@ public:
31 field_collection.AddField(type, name, std::move(value)); 30 field_collection.AddField(type, name, std::move(value));
32 } 31 }
33 32
33 static void FinalizeAsyncJob();
34
34private: 35private:
35 Telemetry::FieldCollection field_collection; ///< Tracks all added fields for the session 36 Telemetry::FieldCollection field_collection; ///< Tracks all added fields for the session
36 std::unique_ptr<Telemetry::VisitorInterface> backend; ///< Backend interface that logs fields 37 std::unique_ptr<Telemetry::VisitorInterface> backend; ///< Backend interface that logs fields
@@ -55,6 +56,6 @@ u64 RegenerateTelemetryId();
55 * @param func A function that gets exectued when the verification is finished 56 * @param func A function that gets exectued when the verification is finished
56 * @returns Future with bool indicating whether the verification succeeded 57 * @returns Future with bool indicating whether the verification succeeded
57 */ 58 */
58std::future<bool> VerifyLogin(std::string username, std::string token, std::function<void()> func); 59bool VerifyLogin(std::string username, std::string token);
59 60
60} // namespace Core 61} // namespace Core