mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
e52a87b98a
* Updated ACC with more service names * Updated SVC with more service names * Updated set with more service names * Updated sockets with more service names * Updated SPL with more service names * Updated time with more service names * Updated vi with more service names
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
// Copyright 2018 yuzu emulator team
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "core/hle/ipc_helpers.h"
|
|
#include "core/hle/service/sockets/sfdnsres.h"
|
|
|
|
namespace Service {
|
|
namespace Sockets {
|
|
|
|
void SFDNSRES::GetAddrInfo(Kernel::HLERequestContext& ctx) {
|
|
IPC::RequestParser rp{ctx};
|
|
|
|
LOG_WARNING(Service, "(STUBBED) called");
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2};
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
}
|
|
|
|
SFDNSRES::SFDNSRES() : ServiceFramework("sfdnsres") {
|
|
static const FunctionInfo functions[] = {
|
|
{0, nullptr, "SetDnsAddressesPrivate"},
|
|
{1, nullptr, "GetDnsAddressPrivate"},
|
|
{2, nullptr, "GetHostByName"},
|
|
{3, nullptr, "GetHostByAddr"},
|
|
{4, nullptr, "GetHostStringError"},
|
|
{5, nullptr, "GetGaiStringError"},
|
|
{6, &SFDNSRES::GetAddrInfo, "GetAddrInfo"},
|
|
{7, nullptr, "GetNameInfo"},
|
|
{8, nullptr, "RequestCancelHandle"},
|
|
{9, nullptr, "CancelSocketCall"},
|
|
{11, nullptr, "ClearDnsIpServerAddressArray"},
|
|
};
|
|
RegisterHandlers(functions);
|
|
}
|
|
|
|
} // namespace Sockets
|
|
} // namespace Service
|