Commit Graph

25 Commits (8d89e88d2c005f1df277b9620075a69387a642f8)

Author SHA1 Message Date
bunnei fc9d8afead
Merge pull request #1542 from lioncash/project
CMakeLists: Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR
7 years ago
Lioncash c8beb665dc CMakeLists: Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR
This is more localized to what we want to enforce directory-wise with
the project. CMAKE_SOURCE_DIR indicates the root of the source tree, but
this would cause the wrong behavior if someone included yuzu as part of
a larger buildsystem (for whatever reason). Instead, we want to use the
directory where the "project(yuzu)" command was declared as the root
path reference.
7 years ago
Lioncash adb9eda105 web_service/CMakeLists: Make the CPPHTTPLIB_OPENSSL_SUPPORT constrained to the web_service library only
Given we link in httplib privately, we can also make the definition
enabling OpenSSL support private as well. Prevents leaking a definition
into other libraries that link with this one, like the core library.
7 years ago
Lioncash 183a664405 web_backend: Make Client use the PImpl idiom
Like with TelemetryJson, we can make the implementation details private
and avoid the need to expose httplib to external libraries that need to
use the Client class.
7 years ago
Lioncash a7725d354c telemetry_json: Use the PImpl idiom to avoid unnecessary dependency exposure
Users of the web_service library shouldn't need to care about an
external library like json.h. However, given it's exposed in our
interface, this requires that other libraries publicly link in the JSON
library. We can do better.

By using the PImpl idiom, we can hide this dependency in the cpp file
and remove the need to link that library in altogether.
7 years ago
Lioncash c422f146ee telemetry_json: Add missing override specifier to the destructor of TelemetryJson 7 years ago
Lioncash 881bb2295d telemetry_json: Take std::string parameters by value
Taking them by const reference isn't advisable here, because it means
the std::move calls were doing nothing and we were always copying the
std::string instances.
7 years ago
Lioncash a34e5e51d8 telemetry_json: Remove unnecessary includes
Removes unused includes. Also rectifies a missing <chrono> include.
7 years ago
fearlessTobi e4daf4bee5 Review comments - part 5 7 years ago
fearlessTobi ac06105dfe Review comments -part 4 7 years ago
fearlessTobi aa48468862 Review comments - part 3 7 years ago
Weiyi Wang 62f9409ba3 web_backend: protect jwt cache with a mutex 7 years ago
fearlessTobi b4ace6ec6f Address a bunch of review comments 7 years ago
fearlessTobi 4d139943f2 Port web_service from Citra 7 years ago
James Rowe ebf9a784a9 Massive removal of unused modules 7 years ago
B3n30 28c726f205 WebService: Verify username and token (#2930)
* WebService: Verify username and token; Log errors in PostJson

* Fixup: added docstrings to the functions

* Webservice: Added Icons to the verification, imrpved error detection in cpr, fixup nits

* fixup: fmt warning
8 years ago
bunnei 7698567fc9 web_backend: Fix CPR bug where Winsock is not properly initializing. 8 years ago
bunnei c8562b21d9 web_backend: Fix asynchronous JSON post by spawning new thread. 8 years ago
bunnei 04bd0c957e web_services: Refactor to remove dependency on Core. 8 years ago
bunnei 41328afb58 web_backend: User config for username and token, support anonymous post. 8 years ago
bunnei 28c3575679 web_backend: Specify api-version on JSON post. 8 years ago
bunnei 8af3ebb149 telemetry_session: Use TelemetryJson to submit real telemetry. 8 years ago
bunnei fd3b4451ec web_service: Implement JSON serialization of telemetry data. 8 years ago
bunnei a634efa40e web_backend: Add initial interface to POST data to Citra Web Services. 8 years ago
bunnei 52fbe1e10c web_service: Add skeleton project. 8 years ago