Namespaces | |
| namespace | anonymous_namespace{api_handlers.cc} |
Classes | |
| class | BonjourPublisher |
| class | HttpServer |
Typedefs | |
| using | json = nlohmann::json |
Functions | |
| void | ApplyCorsHeaders (httplib::Response &res) |
| void | HandleHealth (const httplib::Request &req, httplib::Response &res, const BonjourPublisher *bonjour) |
| void | HandleListModels (const httplib::Request &req, httplib::Response &res) |
| void | HandleGetSymbols (const httplib::Request &req, httplib::Response &res, yaze::emu::debug::SymbolProvider *symbols) |
| void | HandleNavigate (const httplib::Request &req, httplib::Response &res) |
| void | HandleBreakpointHit (const httplib::Request &req, httplib::Response &res) |
| void | HandleStateUpdate (const httplib::Request &req, httplib::Response &res) |
| void | HandleWindowShow (const httplib::Request &req, httplib::Response &res, const std::function< bool()> &action) |
| void | HandleWindowHide (const httplib::Request &req, httplib::Response &res, const std::function< bool()> &action) |
| void | HandleCorsPreflight (const httplib::Request &req, httplib::Response &res) |
| void | HandleRenderDungeon (const httplib::Request &req, httplib::Response &res, yaze::app::service::RenderService *render_service) |
| void | HandleRenderDungeonMetadata (const httplib::Request &req, httplib::Response &res, yaze::app::service::RenderService *render_service) |
| void | HandleCommandExecute (const httplib::Request &req, httplib::Response &res, yaze::Rom *rom) |
| void | HandleCommandList (const httplib::Request &req, httplib::Response &res) |
| void | HandleAnnotationList (const httplib::Request &req, httplib::Response &res, const std::string &project_path) |
| void | HandleAnnotationCreate (const httplib::Request &req, httplib::Response &res, const std::string &project_path) |
| void | HandleAnnotationUpdate (const httplib::Request &req, httplib::Response &res, const std::string &project_path) |
| void | HandleAnnotationDelete (const httplib::Request &req, httplib::Response &res, const std::string &project_path) |
| using yaze::cli::api::json = nlohmann::json |
Definition at line 24 of file api_handlers.cc.
| void yaze::cli::api::ApplyCorsHeaders | ( | httplib::Response & | res | ) |
Definition at line 47 of file api_handlers.cc.
Referenced by HandleAnnotationCreate(), HandleAnnotationDelete(), HandleAnnotationList(), HandleAnnotationUpdate(), HandleBreakpointHit(), HandleCommandExecute(), HandleCommandList(), HandleCorsPreflight(), HandleGetSymbols(), HandleHealth(), HandleListModels(), HandleNavigate(), HandleRenderDungeon(), HandleRenderDungeonMetadata(), HandleStateUpdate(), yaze::cli::api::anonymous_namespace{api_handlers.cc}::HandleWindowAction(), and yaze::cli::api::HttpServer::RegisterRoutes().
| void yaze::cli::api::HandleHealth | ( | const httplib::Request & | req, |
| httplib::Response & | res, | ||
| const BonjourPublisher * | bonjour ) |
Definition at line 86 of file api_handlers.cc.
References ApplyCorsHeaders(), and yaze::cli::api::BonjourPublisher::IsAvailable().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleListModels | ( | const httplib::Request & | req, |
| httplib::Response & | res ) |
Definition at line 106 of file api_handlers.cc.
References ApplyCorsHeaders(), and yaze::cli::ModelRegistry::GetInstance().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleGetSymbols | ( | const httplib::Request & | req, |
| httplib::Response & | res, | ||
| yaze::emu::debug::SymbolProvider * | symbols ) |
Definition at line 145 of file api_handlers.cc.
References ApplyCorsHeaders(), yaze::emu::debug::SymbolProvider::ExportSymbols(), yaze::emu::debug::kAsar, yaze::emu::debug::kBsnes, yaze::emu::debug::kMesen, and yaze::emu::debug::kWlaDx.
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleNavigate | ( | const httplib::Request & | req, |
| httplib::Response & | res ) |
Definition at line 206 of file api_handlers.cc.
References ApplyCorsHeaders().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleBreakpointHit | ( | const httplib::Request & | req, |
| httplib::Response & | res ) |
Definition at line 233 of file api_handlers.cc.
References ApplyCorsHeaders().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleStateUpdate | ( | const httplib::Request & | req, |
| httplib::Response & | res ) |
Definition at line 263 of file api_handlers.cc.
References ApplyCorsHeaders().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleWindowShow | ( | const httplib::Request & | req, |
| httplib::Response & | res, | ||
| const std::function< bool()> & | action ) |
Definition at line 285 of file api_handlers.cc.
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().
| void yaze::cli::api::HandleWindowHide | ( | const httplib::Request & | req, |
| httplib::Response & | res, | ||
| const std::function< bool()> & | action ) |
Definition at line 291 of file api_handlers.cc.
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().
| void yaze::cli::api::HandleCorsPreflight | ( | const httplib::Request & | req, |
| httplib::Response & | res ) |
Definition at line 297 of file api_handlers.cc.
References ApplyCorsHeaders().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleRenderDungeon | ( | const httplib::Request & | req, |
| httplib::Response & | res, | ||
| yaze::app::service::RenderService * | render_service ) |
Definition at line 336 of file api_handlers.cc.
References ApplyCorsHeaders(), yaze::app::service::RenderOverlay::kAll, yaze::app::service::RenderOverlay::kCameraQuads, yaze::app::service::RenderOverlay::kCollision, yaze::app::service::RenderOverlay::kGrid, yaze::app::service::RenderOverlay::kNone, yaze::app::service::RenderOverlay::kObjects, yaze::app::service::RenderOverlay::kSprites, yaze::app::service::RenderOverlay::kTrack, yaze::app::service::RenderRequest::overlay_flags, yaze::app::service::RenderService::RenderDungeonRoom(), yaze::app::service::RenderRequest::room_id, and yaze::app::service::RenderRequest::scale.
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleRenderDungeonMetadata | ( | const httplib::Request & | req, |
| httplib::Response & | res, | ||
| yaze::app::service::RenderService * | render_service ) |
Definition at line 420 of file api_handlers.cc.
References ApplyCorsHeaders(), and yaze::app::service::RenderService::GetDungeonRoomMetadata().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleCommandExecute | ( | const httplib::Request & | req, |
| httplib::Response & | res, | ||
| yaze::Rom * | rom ) |
Definition at line 470 of file api_handlers.cc.
References ApplyCorsHeaders(), and yaze::cli::CommandRegistry::Instance().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleCommandList | ( | const httplib::Request & | req, |
| httplib::Response & | res ) |
Definition at line 533 of file api_handlers.cc.
References ApplyCorsHeaders(), and yaze::cli::CommandRegistry::Instance().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleAnnotationList | ( | const httplib::Request & | req, |
| httplib::Response & | res, | ||
| const std::string & | project_path ) |
Definition at line 611 of file api_handlers.cc.
References ApplyCorsHeaders().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleAnnotationCreate | ( | const httplib::Request & | req, |
| httplib::Response & | res, | ||
| const std::string & | project_path ) |
Definition at line 655 of file api_handlers.cc.
References ApplyCorsHeaders().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleAnnotationUpdate | ( | const httplib::Request & | req, |
| httplib::Response & | res, | ||
| const std::string & | project_path ) |
Definition at line 697 of file api_handlers.cc.
References ApplyCorsHeaders().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

| void yaze::cli::api::HandleAnnotationDelete | ( | const httplib::Request & | req, |
| httplib::Response & | res, | ||
| const std::string & | project_path ) |
Definition at line 768 of file api_handlers.cc.
References ApplyCorsHeaders().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().
