Port web_service from Citra
This commit is contained in:
parent
5f30f95e94
commit
4d139943f2
45 changed files with 1577 additions and 39 deletions
24
src/common/web_result.h
Normal file
24
src/common/web_result.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2018 yuzu Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace Common {
|
||||
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 Commo
|
Loading…
Add table
Add a link
Reference in a new issue