kern: add SvcCreatePort, SvcConnectToPort

This commit is contained in:
Michael Scire
2020-07-14 02:24:26 -07:00
committed by SciresM
parent 9f79710cb7
commit 93be2ffcba
10 changed files with 338 additions and 11 deletions

View File

@@ -35,13 +35,22 @@ namespace ams::kern {
constexpr KLightServerSession() : parent(), request_queue(), server_queue(), current_request(), server_thread() { /* ... */ }
virtual ~KLightServerSession() { /* ... */ }
void Initialize(KLightSession *parent);
void Initialize(KLightSession *parent) {
/* Set member variables. */
this->parent = parent;
}
virtual void Destroy() override;
static void PostDestroy(uintptr_t arg) { /* ... */ }
constexpr const KLightSession *GetParent() const { return this->parent; }
/* TODO: More of KLightServerSession. */
Result OnRequest(KThread *request_thread);
Result ReplyAndReceive(u32 *data);
void OnClientClosed();
private:
void CleanupRequests();
};
}