bsd: stubbed Connect()
This commit is contained in:
@@ -35,10 +35,21 @@ void BSD_U::Socket(Kernel::HLERequestContext& ctx) {
|
|||||||
rb.Push<u32>(0); // bsd errno
|
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") {
|
BSD_U::BSD_U() : ServiceFramework("bsd:u") {
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, &BSD_U::RegisterClient, "RegisterClient"},
|
{0, &BSD_U::RegisterClient, "RegisterClient"},
|
||||||
{2, &BSD_U::Socket, "Socket"}
|
{2, &BSD_U::Socket, "Socket"},
|
||||||
|
{14, &BSD_U::Connect, "Connect"}
|
||||||
};
|
};
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
void RegisterClient(Kernel::HLERequestContext& ctx);
|
void RegisterClient(Kernel::HLERequestContext& ctx);
|
||||||
void Socket(Kernel::HLERequestContext& ctx);
|
void Socket(Kernel::HLERequestContext& ctx);
|
||||||
|
void Connect(Kernel::HLERequestContext& ctx);
|
||||||
|
|
||||||
/// Id to use for the next open file descriptor.
|
/// Id to use for the next open file descriptor.
|
||||||
u32 next_fd = 1;
|
u32 next_fd = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user