summaryrefslogtreecommitdiffstats
path: root/src/web_service/web_result.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-23 01:23:22 +0200
committerLioncash <mathew1800@gmail.com>2020-08-23 01:29:54 +0200
commitca5ed50655b744ae4d3242b2105676a43d1482e0 (patch)
treeac342b98c89c4a15d536e8e1e98ea9f753154e32 /src/web_service/web_result.h
parentMerge pull request #4546 from lioncash/telemetry (diff)
downloadyuzu-ca5ed50655b744ae4d3242b2105676a43d1482e0.tar
yuzu-ca5ed50655b744ae4d3242b2105676a43d1482e0.tar.gz
yuzu-ca5ed50655b744ae4d3242b2105676a43d1482e0.tar.bz2
yuzu-ca5ed50655b744ae4d3242b2105676a43d1482e0.tar.lz
yuzu-ca5ed50655b744ae4d3242b2105676a43d1482e0.tar.xz
yuzu-ca5ed50655b744ae4d3242b2105676a43d1482e0.tar.zst
yuzu-ca5ed50655b744ae4d3242b2105676a43d1482e0.zip
Diffstat (limited to 'src/web_service/web_result.h')
-rw-r--r--src/web_service/web_result.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/web_service/web_result.h b/src/web_service/web_result.h
new file mode 100644
index 000000000..3aeeb5288
--- /dev/null
+++ b/src/web_service/web_result.h
@@ -0,0 +1,25 @@
+// Copyright 2018 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <string>
+#include "common/common_types.h"
+
+namespace WebService {
+struct WebResult {
+ enum class Code : u32 {
+ Success,
+ InvalidURL,
+ CredentialsMissing,
+ LibError,
+ HttpError,
+ WrongContent,
+ NoWebservice,
+ };
+ Code result_code;
+ std::string result_string;
+ std::string returned_data;
+};
+} // namespace WebService