htc: fixes, can now enter ReadyState with wip starlink code

This commit is contained in:
Michael Scire
2021-02-12 06:08:16 -08:00
committed by SciresM
parent 5fc1981061
commit f28a410ba0
7 changed files with 182 additions and 7 deletions

View File

@@ -32,11 +32,15 @@ namespace ams::htcfs {
HeaderFactory m_header_factory;
os::SdkMutex m_mutex;
htclow::Module m_module;
htclow::Channel m_channel;
htclow::Channel m_rpc_channel;
htclow::Channel m_data_channel;
bool m_connected;
os::ThreadType m_monitor_thread;
os::Event m_event;
private:
static void ThreadEntry(void *arg) { static_cast<ClientImpl *>(arg)->ThreadBody(); }
void ThreadBody();
public:
ClientImpl(htclow::HtclowManager *manager);
@@ -48,6 +52,11 @@ namespace ams::htcfs {
void Start();
void Cancel();
void Wait();
private:
int WaitAny(htclow::ChannelState state, os::EventType *event);
Result SetUpProtocol();
void TearDownProtocol();
};
}