diff options
Diffstat (limited to 'src/web_service/web_backend.h')
| -rw-r--r-- | src/web_service/web_backend.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/web_service/web_backend.h b/src/web_service/web_backend.h index 1f2e08f54..2753d3b68 100644 --- a/src/web_service/web_backend.h +++ b/src/web_service/web_backend.h | |||
| @@ -4,6 +4,28 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <string> | ||
| 8 | #include "common/common_types.h" | ||
| 9 | |||
| 7 | namespace WebService { | 10 | namespace WebService { |
| 8 | 11 | ||
| 12 | /** | ||
| 13 | * Gets the current username for accessing services.citra-emu.org. | ||
| 14 | * @returns Username as a string, empty if not set. | ||
| 15 | */ | ||
| 16 | const std::string& GetUsername(); | ||
| 17 | |||
| 18 | /** | ||
| 19 | * Gets the current token for accessing services.citra-emu.org. | ||
| 20 | * @returns Token as a string, empty if not set. | ||
| 21 | */ | ||
| 22 | const std::string& GetToken(); | ||
| 23 | |||
| 24 | /** | ||
| 25 | * Posts JSON to services.citra-emu.org. | ||
| 26 | * @param url URL of the services.citra-emu.org endpoint to post data to. | ||
| 27 | * @param data String of JSON data to use for the body of the POST request. | ||
| 28 | */ | ||
| 29 | void PostJson(const std::string& url, const std::string& data); | ||
| 30 | |||
| 9 | } // namespace WebService | 31 | } // namespace WebService |