summaryrefslogtreecommitdiff
path: root/src/web_service
AgeCommit message (Collapse)Author
2018-10-23Merge pull request #1542 from lioncash/projectbunnei
CMakeLists: Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR
2018-10-20CMakeLists: Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIRLioncash
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.
2018-10-20web_service/CMakeLists: Make the CPPHTTPLIB_OPENSSL_SUPPORT constrained to ↵Lioncash
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.
2018-10-10web_backend: Make Client use the PImpl idiomLioncash
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.
2018-10-10telemetry_json: Use the PImpl idiom to avoid unnecessary dependency exposureLioncash
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.
2018-10-10telemetry_json: Add missing override specifier to the destructor of ↵Lioncash
TelemetryJson
2018-10-10telemetry_json: Take std::string parameters by valueLioncash
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.
2018-10-10telemetry_json: Remove unnecessary includesLioncash
Removes unused includes. Also rectifies a missing <chrono> include.
2018-10-02Review comments - part 5fearlessTobi
2018-10-02Review comments -part 4fearlessTobi
2018-10-02Review comments - part 3fearlessTobi
2018-10-02web_backend: protect jwt cache with a mutexWeiyi Wang
2018-10-02Address a bunch of review commentsfearlessTobi
2018-10-02Port web_service from CitrafearlessTobi
2018-01-12Massive removal of unused modulesJames Rowe
2017-09-18WebService: Verify username and token (#2930)B3n30
* 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
2017-08-26web_backend: Fix CPR bug where Winsock is not properly initializing.bunnei
2017-08-25web_backend: Fix asynchronous JSON post by spawning new thread.bunnei
2017-08-25web_services: Refactor to remove dependency on Core.bunnei
2017-08-25web_backend: User config for username and token, support anonymous post.bunnei
2017-07-11web_backend: Specify api-version on JSON post.bunnei
2017-07-11telemetry_session: Use TelemetryJson to submit real telemetry.bunnei
2017-07-11web_service: Implement JSON serialization of telemetry data.bunnei
2017-07-11web_backend: Add initial interface to POST data to Citra Web Services.bunnei
2017-07-10web_service: Add skeleton project.bunnei