2018-01-30 01:29:47 -05:00
|
|
|
// 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"
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
namespace Service::Sockets {
|
2018-01-30 01:29:47 -05:00
|
|
|
|
|
|
|
void SFDNSRES::GetAddrInfo(Kernel::HLERequestContext& ctx) {
|
|
|
|
IPC::RequestParser rp{ctx};
|
|
|
|
|
2018-04-24 10:53:44 -04:00
|
|
|
NGLOG_WARNING(Service, "(STUBBED) called");
|
2018-01-30 01:29:47 -05:00
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2};
|
|
|
|
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
}
|
|
|
|
|
|
|
|
SFDNSRES::SFDNSRES() : ServiceFramework("sfdnsres") {
|
2018-03-25 05:41:00 -04:00
|
|
|
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"},
|
2018-04-17 11:37:43 -04:00
|
|
|
{11, nullptr, "ClearDnsIpServerAddressArray"},
|
2018-03-25 05:41:00 -04:00
|
|
|
};
|
2018-01-30 01:29:47 -05:00
|
|
|
RegisterHandlers(functions);
|
|
|
|
}
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
} // namespace Service::Sockets
|