yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::cli::api Namespace Reference

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)
 

Typedef Documentation

◆ json

using yaze::cli::api::json = nlohmann::json

Definition at line 25 of file api_handlers.cc.

Function Documentation

◆ ApplyCorsHeaders()

◆ HandleHealth()

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().

Here is the call graph for this function:

◆ HandleListModels()

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().

Here is the call graph for this function:

◆ HandleGetSymbols()

void yaze::cli::api::HandleGetSymbols ( const httplib::Request & req,
httplib::Response & res,
yaze::emu::debug::SymbolProvider * symbols )

◆ HandleNavigate()

void yaze::cli::api::HandleNavigate ( const httplib::Request & req,
httplib::Response & res )
Todo
Integrate with yaze's disassembly viewer to jump to address

Definition at line 207 of file api_handlers.cc.

References ApplyCorsHeaders().

Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

Here is the call graph for this function:

◆ HandleBreakpointHit()

void yaze::cli::api::HandleBreakpointHit ( const httplib::Request & req,
httplib::Response & res )
Todo
Integrate with RomDebugAgent for analysis

Definition at line 234 of file api_handlers.cc.

References ApplyCorsHeaders().

Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

Here is the call graph for this function:

◆ HandleStateUpdate()

void yaze::cli::api::HandleStateUpdate ( const httplib::Request & req,
httplib::Response & res )
Todo
Store state for use by MesenDebugPanel and RomDebugAgent

Definition at line 264 of file api_handlers.cc.

References ApplyCorsHeaders().

Referenced by yaze::cli::api::HttpServer::RegisterRoutes().

Here is the call graph for this function:

◆ HandleWindowShow()

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().

◆ HandleWindowHide()

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().

◆ HandleCorsPreflight()

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().

Here is the call graph for this function:

◆ HandleRenderDungeon()

◆ HandleRenderDungeonMetadata()

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().

Here is the call graph for this function:

◆ HandleCommandExecute()

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().

Here is the call graph for this function:

◆ HandleCommandList()

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().

Here is the call graph for this function:

◆ HandleAnnotationList()

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().

Here is the call graph for this function:

◆ HandleAnnotationCreate()

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().

Here is the call graph for this function:

◆ HandleAnnotationUpdate()

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().

Here is the call graph for this function:

◆ HandleAnnotationDelete()

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().

Here is the call graph for this function: