bsd: stubbed Connect()

This commit is contained in:
Frederic Meyer
2018-01-17 23:09:09 +01:00
parent f6f8169364
commit ca23001504
2 changed files with 13 additions and 1 deletions

View File

@@ -35,10 +35,21 @@ void BSD_U::Socket(Kernel::HLERequestContext& ctx) {
rb.Push<u32>(0); // bsd errno
}
void BSD_U::Connect(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service, "(STUBBED) called");
IPC::RequestBuilder rb{ctx, 4};
rb.Push(RESULT_SUCCESS);
rb.Push<u32>(0); // ret
rb.Push<u32>(0); // bsd errno
}
BSD_U::BSD_U() : ServiceFramework("bsd:u") {
static const FunctionInfo functions[] = {
{0, &BSD_U::RegisterClient, "RegisterClient"},
{2, &BSD_U::Socket, "Socket"}
{2, &BSD_U::Socket, "Socket"},
{14, &BSD_U::Connect, "Connect"}
};
RegisterHandlers(functions);
}

View File

@@ -18,6 +18,7 @@ public:
private:
void RegisterClient(Kernel::HLERequestContext& ctx);
void Socket(Kernel::HLERequestContext& ctx);
void Connect(Kernel::HLERequestContext& ctx);
/// Id to use for the next open file descriptor.
u32 next_fd = 1;