Browse Source
Merge pull request #2364 from mailwl/nwm-services
Merge pull request #2364 from mailwl/nwm-services
Service/NWM: add nwm servicesnce_cpp
committed by
GitHub
18 changed files with 317 additions and 10 deletions
-
18src/core/CMakeLists.txt
-
28src/core/hle/service/nwm/nwm.cpp
-
14src/core/hle/service/nwm/nwm.h
-
19src/core/hle/service/nwm/nwm_cec.cpp
-
22src/core/hle/service/nwm/nwm_cec.h
-
19src/core/hle/service/nwm/nwm_ext.cpp
-
22src/core/hle/service/nwm/nwm_ext.h
-
21src/core/hle/service/nwm/nwm_inf.cpp
-
22src/core/hle/service/nwm/nwm_inf.h
-
20src/core/hle/service/nwm/nwm_sap.cpp
-
22src/core/hle/service/nwm/nwm_sap.h
-
20src/core/hle/service/nwm/nwm_soc.cpp
-
22src/core/hle/service/nwm/nwm_soc.h
-
20src/core/hle/service/nwm/nwm_tst.cpp
-
22src/core/hle/service/nwm/nwm_tst.h
-
11src/core/hle/service/nwm/nwm_uds.cpp
-
0src/core/hle/service/nwm/nwm_uds.h
-
5src/core/hle/service/service.cpp
@ -0,0 +1,28 @@ |
|||
// Copyright 2016 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/service/nwm/nwm.h"
|
|||
#include "core/hle/service/nwm/nwm_cec.h"
|
|||
#include "core/hle/service/nwm/nwm_ext.h"
|
|||
#include "core/hle/service/nwm/nwm_inf.h"
|
|||
#include "core/hle/service/nwm/nwm_sap.h"
|
|||
#include "core/hle/service/nwm/nwm_soc.h"
|
|||
#include "core/hle/service/nwm/nwm_tst.h"
|
|||
#include "core/hle/service/nwm/nwm_uds.h"
|
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
void Init() { |
|||
AddService(new NWM_CEC); |
|||
AddService(new NWM_EXT); |
|||
AddService(new NWM_INF); |
|||
AddService(new NWM_SAP); |
|||
AddService(new NWM_SOC); |
|||
AddService(new NWM_TST); |
|||
AddService(new NWM_UDS); |
|||
} |
|||
|
|||
} // namespace NWM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,14 @@ |
|||
// Copyright 2016 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
/// Initialize all NWM services |
|||
void Init(); |
|||
|
|||
} // namespace NWM |
|||
} // namespace Service |
|||
@ -0,0 +1,19 @@ |
|||
// Copyright 2016 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/service/nwm/nwm_cec.h"
|
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x000D0082, nullptr, "SendProbeRequest"}, |
|||
}; |
|||
|
|||
NWM_CEC::NWM_CEC() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace NWM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2016 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
class NWM_CEC final : public Interface { |
|||
public: |
|||
NWM_CEC(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nwm::CEC"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace NWM |
|||
} // namespace Service |
|||
@ -0,0 +1,19 @@ |
|||
// Copyright 2016 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/service/nwm/nwm_ext.h"
|
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x00080040, nullptr, "ControlWirelessEnabled"}, |
|||
}; |
|||
|
|||
NWM_EXT::NWM_EXT() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace NWM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2016 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
class NWM_EXT final : public Interface { |
|||
public: |
|||
NWM_EXT(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nwm::EXT"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace NWM |
|||
} // namespace Service |
|||
@ -0,0 +1,21 @@ |
|||
// Copyright 2016 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/service/nwm/nwm_inf.h"
|
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x000603C4, nullptr, "RecvBeaconBroadcastData"}, |
|||
{0x00070742, nullptr, "ConnectToEncryptedAP"}, |
|||
{0x00080302, nullptr, "ConnectToAP"}, |
|||
}; |
|||
|
|||
NWM_INF::NWM_INF() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace NWM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2016 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
class NWM_INF final : public Interface { |
|||
public: |
|||
NWM_INF(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nwm::INF"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace NWM |
|||
} // namespace Service |
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2016 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/service/nwm/nwm_sap.h"
|
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
/*
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
}; |
|||
*/ |
|||
|
|||
NWM_SAP::NWM_SAP() { |
|||
// Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace NWM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2016 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
class NWM_SAP final : public Interface { |
|||
public: |
|||
NWM_SAP(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nwm::SAP"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace NWM |
|||
} // namespace Service |
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2016 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/service/nwm/nwm_soc.h"
|
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
/*
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
}; |
|||
*/ |
|||
|
|||
NWM_SOC::NWM_SOC() { |
|||
// Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace NWM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2016 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
class NWM_SOC final : public Interface { |
|||
public: |
|||
NWM_SOC(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nwm::SOC"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace NWM |
|||
} // namespace Service |
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2016 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/service/nwm/nwm_tst.h"
|
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
/*
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
}; |
|||
*/ |
|||
|
|||
NWM_TST::NWM_TST() { |
|||
// Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace NWM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2016 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace NWM { |
|||
|
|||
class NWM_TST final : public Interface { |
|||
public: |
|||
NWM_TST(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nwm::TST"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace NWM |
|||
} // namespace Service |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue