1#ifndef YAZE_SRC_CLI_SERVICE_API_HTTP_SERVER_H_
2#define YAZE_SRC_CLI_SERVICE_API_HTTP_SERVER_H_
10#include "absl/status/status.h"
11#include "absl/status/statusor.h"
46 std::function<absl::StatusOr<std::string>(
const std::string&)>;
56 absl::Status
Start(
int port,
bool loopback_only =
false);
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
void SetProjectPathSource(ProjectPathSource source)
std::unique_ptr< httplib::Server > server_
std::function< std::string()> ProjectPathSource
BonjourPublisher bonjour_
RenderServiceSource render_source_
WindowAction window_show_
SymbolProviderSource symbol_source_
BonjourPublisher & GetBonjourPublisher()
WindowAction window_hide_
absl::Status Start(int port, bool loopback_only=false)
std::function< absl::StatusOr< std::string >(const std::string &)> EditorControl
std::function< Rom *()> RomSource
SymbolProviderSource GetSymbolSource() const
void SetRomSource(RomSource source)
std::function< app::service::RenderService *()> RenderServiceSource
bool editor_control_only_
void SetBindAddress(std::string address)
bool command_execution_enabled_
void SetRenderServiceSource(RenderServiceSource source)
ProjectPathSource project_path_source_
void SetEditorControl(EditorControl control)
std::string bind_address_
std::function< bool()> WindowAction
void SetWindowActions(WindowAction show, WindowAction hide)
std::function< emu::debug::SymbolProvider *()> SymbolProviderSource
void SetSymbolProviderSource(SymbolProviderSource source)
void SetCommandExecutionEnabled(bool enabled)
std::unique_ptr< std::thread > server_thread_
std::atomic< bool > is_running_
EditorControl editor_control_
Provider for symbol (label) resolution in disassembly.