19 std::vector<std::filesystem::path>
tried;
25template <
typename T =
void>
26using Result = std::expected<T, Failure>;
56MAYAFLUX_HOST_API
void stop_session(
bool clear_persistent_store =
false);
67[[nodiscard]] MAYAFLUX_HOST_API std::optional<Lila::Address>
session_address();
Failure to_failure(const Platform::AcquireFailure &failure)
Result< void > apply_or_stage(Stage stage, std::string value)
Apply an item to the running session, or stage it until start_session.
Lila::EvalOrigin EvalOrigin
std::expected< T, Failure > Result
Result of a Host call.
std::function< void(const EvalReport &)> EvalObserver
Result< void * > symbol_address(const std::string &name)
Address of a symbol defined in the running session.
Result< void > eval(const std::string &code)
Evaluate a code snippet.
std::optional< Lila::Address > session_address()
Where the running session listens, with anything resolved at start filled in.
uint64_t ObserverId
Identifies an observer for remove_eval_observer.
void remove_eval_observer(ObserverId id)
Stop observing.
bool session_active()
True if a session is running in this process.
Result< void > start_session(const Lila::Address &where)
Start a Lila interpreter and a server inside this process.
Lila::EvalReport EvalReport
What one evaluation did, as Lila reports it.
ObserverId on_eval(EvalObserver observer)
Observe every evaluation in the session, whoever sent it.
Result< void > eval_file(const std::filesystem::path &path)
Evaluate a source file by including it.
void stop_session(bool clear_persistent_store)
Stop the running session.
A Unix domain socket: a socket file that only its owner can use.
std::vector< std::filesystem::path > tried
Why a Host call was refused, with every path that was checked.