diff options
author | Lioncash <mathew1800@gmail.com> | 2016-12-10 13:51:50 +0100 |
---|---|---|
committer | linkmauve <linkmauve@linkmauve.fr> | 2016-12-11 01:07:27 +0100 |
commit | 963aedd8ccc207d5b65b97bd46b930771f2bda6e (patch) | |
tree | ab238398e6f8a37e4cd105d19dcec54f82ec1bb2 /src/core/hle/service/nwm_uds.cpp | |
parent | configure_input: Modernize and cleanup input configuration tab (diff) | |
download | yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.gz yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.bz2 yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.lz yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.xz yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.zst yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.zip |
Diffstat (limited to 'src/core/hle/service/nwm_uds.cpp')
-rw-r--r-- | src/core/hle/service/nwm_uds.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/core/hle/service/nwm_uds.cpp b/src/core/hle/service/nwm_uds.cpp index 8a2b00614..e3160d4b4 100644 --- a/src/core/hle/service/nwm_uds.cpp +++ b/src/core/hle/service/nwm_uds.cpp @@ -7,10 +7,8 @@ #include "core/hle/kernel/event.h" #include "core/hle/service/nwm_uds.h" -//////////////////////////////////////////////////////////////////////////////////////////////////// -// Namespace NWM_UDS - -namespace NWM_UDS { +namespace Service { +namespace NWM { static Kernel::SharedPtr<Kernel::Event> handle_event; @@ -22,7 +20,7 @@ static Kernel::SharedPtr<Kernel::Event> handle_event; * 0 : Return header * 1 : Result of function, 0 on success, otherwise error code */ -static void Shutdown(Service::Interface* self) { +static void Shutdown(Interface* self) { u32* cmd_buff = Kernel::GetCommandBuffer(); // TODO(purpasmart): Verify return header on HW @@ -50,7 +48,7 @@ static void Shutdown(Service::Interface* self) { * 0 : Return header * 1 : Result of function, 0 on success, otherwise error code */ -static void RecvBeaconBroadcastData(Service::Interface* self) { +static void RecvBeaconBroadcastData(Interface* self) { u32* cmd_buff = Kernel::GetCommandBuffer(); u32 out_buffer_size = cmd_buff[1]; u32 unk1 = cmd_buff[2]; @@ -90,7 +88,7 @@ static void RecvBeaconBroadcastData(Service::Interface* self) { * 2 : Value 0 * 3 : Output handle */ -static void InitializeWithVersion(Service::Interface* self) { +static void InitializeWithVersion(Interface* self) { u32* cmd_buff = Kernel::GetCommandBuffer(); u32 unk1 = cmd_buff[1]; u32 unk2 = cmd_buff[12]; @@ -148,17 +146,15 @@ const Interface::FunctionInfo FunctionTable[] = { {0x00220402, nullptr, "ScanOnConnection"}, }; -//////////////////////////////////////////////////////////////////////////////////////////////////// -// Interface class - -Interface::Interface() { +NWM_UDS::NWM_UDS() { handle_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "NWM_UDS::handle_event"); Register(FunctionTable); } -Interface::~Interface() { +NWM_UDS::~NWM_UDS() { handle_event = nullptr; } -} // namespace +} // namespace NWM +} // namespace Service |