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 25 of file api_handlers.cc.
| void yaze::cli::api::ApplyCorsHeaders | ( | httplib::Response & | res | ) |
Definition at line 48 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 87 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 107 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 146 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 207 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 234 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 264 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 286 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 292 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 298 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 337 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::ParseRenderScale(), 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 424 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 474 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 537 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 616 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 660 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 702 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 773 of file api_handlers.cc.
References ApplyCorsHeaders().
Referenced by yaze::cli::api::HttpServer::RegisterRoutes().
