|
|
@ -4,23 +4,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
|
|
|
#include "common/common_types.h"
|
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "core/hle/ipc.h"
|
|
|
|
#include "core/hle/ipc_helpers.h"
|
|
|
|
#include "core/hle/result.h"
|
|
|
|
#include "core/hle/result.h"
|
|
|
|
#include "core/hle/service/dlp/dlp_srvr.h"
|
|
|
|
#include "core/hle/service/dlp/dlp_srvr.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace Service {
|
|
|
|
namespace Service {
|
|
|
|
namespace DLP {
|
|
|
|
namespace DLP {
|
|
|
|
|
|
|
|
|
|
|
|
static void IsChild(Interface* self) {
|
|
|
|
void DLP_SRVR::IsChild(Kernel::HLERequestContext& ctx) {
|
|
|
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
|
|
|
IPC::RequestParser rp(ctx, 0x0E, 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
|
|
|
IPC::RequestBuilder rb = rp.MakeBuilder(2, 0);
|
|
|
|
cmd_buff[2] = 0;
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
|
|
|
|
rb.PushRaw(0);
|
|
|
|
|
|
|
|
|
|
|
|
NGLOG_WARNING(Service_DLP, "(STUBBED) called");
|
|
|
|
NGLOG_WARNING(Service_DLP, "(STUBBED) called");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const Interface::FunctionInfo FunctionTable[] = {
|
|
|
|
DLP_SRVR::DLP_SRVR() : ServiceFramework("dlp:SRVR", 1) {
|
|
|
|
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
|
|
|
|
// clang-format off
|
|
|
|
{0x00010183, nullptr, "Initialize"},
|
|
|
|
{0x00010183, nullptr, "Initialize"},
|
|
|
|
{0x00020000, nullptr, "Finalize"},
|
|
|
|
{0x00020000, nullptr, "Finalize"},
|
|
|
|
{0x00030000, nullptr, "GetServerState"},
|
|
|
|
{0x00030000, nullptr, "GetServerState"},
|
|
|
@ -34,13 +37,13 @@ const Interface::FunctionInfo FunctionTable[] = {
|
|
|
|
{0x000B0042, nullptr, "GetConnectingClients"},
|
|
|
|
{0x000B0042, nullptr, "GetConnectingClients"},
|
|
|
|
{0x000C0040, nullptr, "GetClientInfo"},
|
|
|
|
{0x000C0040, nullptr, "GetClientInfo"},
|
|
|
|
{0x000D0040, nullptr, "GetClientState"},
|
|
|
|
{0x000D0040, nullptr, "GetClientState"},
|
|
|
|
{0x000E0040, IsChild, "IsChild"},
|
|
|
|
{0x000E0040, &DLP_SRVR::IsChild, "IsChild"},
|
|
|
|
{0x000F0303, nullptr, "InitializeWithName"},
|
|
|
|
{0x000F0303, nullptr, "InitializeWithName"},
|
|
|
|
{0x00100000, nullptr, "GetDupNoticeNeed"},
|
|
|
|
{0x00100000, nullptr, "GetDupNoticeNeed"},
|
|
|
|
|
|
|
|
// clang-format on
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
DLP_SRVR_Interface::DLP_SRVR_Interface() {
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
Register(FunctionTable);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace DLP
|
|
|
|
} // namespace DLP
|
|
|
|