diff options
| author | 2018-10-06 02:43:09 -0400 | |
|---|---|---|
| committer | 2018-10-06 02:43:09 -0400 | |
| commit | b8b90ce6e61329ebda226b9917ed961be3b80d1f (patch) | |
| tree | 8e6b82419db7fb24eb5d8f06346a0a1228f9513c /src/common/web_result.h | |
| parent | Merge pull request #1447 from lioncash/mutex (diff) | |
| parent | Review comments - part 5 (diff) | |
| download | yuzu-b8b90ce6e61329ebda226b9917ed961be3b80d1f.tar.gz yuzu-b8b90ce6e61329ebda226b9917ed961be3b80d1f.tar.xz yuzu-b8b90ce6e61329ebda226b9917ed961be3b80d1f.zip | |
Merge pull request #1332 from FearlessTobi/port-web-backend
Port web_service from Citra
Diffstat (limited to 'src/common/web_result.h')
| -rw-r--r-- | src/common/web_result.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/common/web_result.h b/src/common/web_result.h new file mode 100644 index 000000000..969926674 --- /dev/null +++ b/src/common/web_result.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | // Copyright 2018 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <string> | ||
| 8 | |||
| 9 | namespace Common { | ||
| 10 | struct WebResult { | ||
| 11 | enum class Code : u32 { | ||
| 12 | Success, | ||
| 13 | InvalidURL, | ||
| 14 | CredentialsMissing, | ||
| 15 | LibError, | ||
| 16 | HttpError, | ||
| 17 | WrongContent, | ||
| 18 | NoWebservice, | ||
| 19 | }; | ||
| 20 | Code result_code; | ||
| 21 | std::string result_string; | ||
| 22 | std::string returned_data; | ||
| 23 | }; | ||
| 24 | } // namespace Common | ||