// SPDX-License-Identifier: MIT #include #include #include namespace FEX::HLE { struct ThreadStateObject; class ThunkHandler : public FEXCore::ThunkHandler { public: virtual void RegisterTLSState(FEX::HLE::ThreadStateObject* ThreadObject) = 0; /** * @brief Allows the frontend to register its own thunk handlers independent of what is controlled in the backend. * * @param CTX A valid non-null context instance. * @param Definitions A vector of thunk definitions that the frontend controls */ virtual void AppendThunkDefinitions(std::span Definitions) = 0; }; fextl::unique_ptr CreateThunkHandler(); } // namespace FEX::HLE