Commit Graph

30 Commits (fe1238be7a14b98c1698b5f8398b0efe83ade43a)

Author SHA1 Message Date
ReinUsesLisp 8299f1ceef web_service/telemetry_json: Report USER_CONFIG 5 years ago
bunnei 8dc9f35baf web-service: Port citra's updated web_backend code. 5 years ago
Lioncash 781ab8407b general: Use deducation guides for std::lock_guard and std::unique_lock
Since C++17, the introduction of deduction guides for locking facilities
means that we no longer need to hardcode the mutex type into the locks
themselves, making it easier to switch mutex types, should it ever be
necessary in the future.
6 years ago
Lioncash aa30fd75cd web_service: Remove unnecessary inclusions
Reduces the potential amount of rebuilding necessary if any headers
change. In particular, we were including a header from the core library
when we don't even link the core library to the web_service library, so
this also gets rid of an indirect dependency.
6 years ago
fearlessTobi 585b6a6a50 compatdb: Use a seperate endpoint for testcase submission 6 years ago
bunnei fc9d8afead
Merge pull request #1542 from lioncash/project
CMakeLists: Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR
6 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.
6 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.
6 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.
6 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.
6 years ago
Lioncash c422f146ee telemetry_json: Add missing override specifier to the destructor of TelemetryJson 6 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.
6 years ago
Lioncash a34e5e51d8 telemetry_json: Remove unnecessary includes
Removes unused includes. Also rectifies a missing <chrono> include.
6 years ago
fearlessTobi e4daf4bee5 Review comments - part 5 6 years ago
fearlessTobi ac06105dfe Review comments -part 4 6 years ago
fearlessTobi aa48468862 Review comments - part 3 6 years ago
Weiyi Wang 62f9409ba3 web_backend: protect jwt cache with a mutex 6 years ago
fearlessTobi b4ace6ec6f Address a bunch of review comments 6 years ago
fearlessTobi 4d139943f2 Port web_service from Citra 6 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
7 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