summaryrefslogtreecommitdiff
path: root/src/core/hle/service/spl
diff options
context:
space:
mode:
authorGravatar Lioncash2018-04-19 21:41:44 -0400
committerGravatar Lioncash2018-04-19 22:20:28 -0400
commitccca5e7c2872d477cc7bef73ed141dc093b106ef (patch)
tree17f5db413993ed4a6f1fec0ac27fb20b44328459 /src/core/hle/service/spl
parentMerge pull request #356 from lioncash/shader (diff)
downloadyuzu-ccca5e7c2872d477cc7bef73ed141dc093b106ef.tar.gz
yuzu-ccca5e7c2872d477cc7bef73ed141dc093b106ef.tar.xz
yuzu-ccca5e7c2872d477cc7bef73ed141dc093b106ef.zip
service: Use nested namespace specifiers where applicable
Tidies up namespace declarations
Diffstat (limited to 'src/core/hle/service/spl')
-rw-r--r--src/core/hle/service/spl/csrng.cpp6
-rw-r--r--src/core/hle/service/spl/csrng.h6
-rw-r--r--src/core/hle/service/spl/module.cpp6
-rw-r--r--src/core/hle/service/spl/module.h6
-rw-r--r--src/core/hle/service/spl/spl.cpp6
-rw-r--r--src/core/hle/service/spl/spl.h6
6 files changed, 12 insertions, 24 deletions
diff --git a/src/core/hle/service/spl/csrng.cpp b/src/core/hle/service/spl/csrng.cpp
index cde05717a..b9e6b799d 100644
--- a/src/core/hle/service/spl/csrng.cpp
+++ b/src/core/hle/service/spl/csrng.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/spl/csrng.h" 5#include "core/hle/service/spl/csrng.h"
6 6
7namespace Service { 7namespace Service::SPL {
8namespace SPL {
9 8
10CSRNG::CSRNG(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "csrng") { 9CSRNG::CSRNG(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "csrng") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -14,5 +13,4 @@ CSRNG::CSRNG(std::shared_ptr<Module> module) : Module::Interface(std::move(modul
14 RegisterHandlers(functions); 13 RegisterHandlers(functions);
15} 14}
16 15
17} // namespace SPL 16} // namespace Service::SPL
18} // namespace Service
diff --git a/src/core/hle/service/spl/csrng.h b/src/core/hle/service/spl/csrng.h
index 59ca794dd..3f849b5a7 100644
--- a/src/core/hle/service/spl/csrng.h
+++ b/src/core/hle/service/spl/csrng.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/spl/module.h" 7#include "core/hle/service/spl/module.h"
8 8
9namespace Service { 9namespace Service::SPL {
10namespace SPL {
11 10
12class CSRNG final : public Module::Interface { 11class CSRNG final : public Module::Interface {
13public: 12public:
14 explicit CSRNG(std::shared_ptr<Module> module); 13 explicit CSRNG(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace SPL 16} // namespace Service::SPL
18} // namespace Service
diff --git a/src/core/hle/service/spl/module.cpp b/src/core/hle/service/spl/module.cpp
index fc1bcd94c..3f5a342a7 100644
--- a/src/core/hle/service/spl/module.cpp
+++ b/src/core/hle/service/spl/module.cpp
@@ -11,8 +11,7 @@
11#include "core/hle/service/spl/module.h" 11#include "core/hle/service/spl/module.h"
12#include "core/hle/service/spl/spl.h" 12#include "core/hle/service/spl/spl.h"
13 13
14namespace Service { 14namespace Service::SPL {
15namespace SPL {
16 15
17Module::Interface::Interface(std::shared_ptr<Module> module, const char* name) 16Module::Interface::Interface(std::shared_ptr<Module> module, const char* name)
18 : ServiceFramework(name), module(std::move(module)) {} 17 : ServiceFramework(name), module(std::move(module)) {}
@@ -38,5 +37,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
38 std::make_shared<SPL>(module)->InstallAsService(service_manager); 37 std::make_shared<SPL>(module)->InstallAsService(service_manager);
39} 38}
40 39
41} // namespace SPL 40} // namespace Service::SPL
42} // namespace Service
diff --git a/src/core/hle/service/spl/module.h b/src/core/hle/service/spl/module.h
index 12cdb2980..6ab91b400 100644
--- a/src/core/hle/service/spl/module.h
+++ b/src/core/hle/service/spl/module.h
@@ -6,8 +6,7 @@
6 6
7#include "core/hle/service/service.h" 7#include "core/hle/service/service.h"
8 8
9namespace Service { 9namespace Service::SPL {
10namespace SPL {
11 10
12class Module final { 11class Module final {
13public: 12public:
@@ -25,5 +24,4 @@ public:
25/// Registers all SPL services with the specified service manager. 24/// Registers all SPL services with the specified service manager.
26void InstallInterfaces(SM::ServiceManager& service_manager); 25void InstallInterfaces(SM::ServiceManager& service_manager);
27 26
28} // namespace SPL 27} // namespace Service::SPL
29} // namespace Service
diff --git a/src/core/hle/service/spl/spl.cpp b/src/core/hle/service/spl/spl.cpp
index 3fcef341e..bb1e03342 100644
--- a/src/core/hle/service/spl/spl.cpp
+++ b/src/core/hle/service/spl/spl.cpp
@@ -4,8 +4,7 @@
4 4
5#include "core/hle/service/spl/spl.h" 5#include "core/hle/service/spl/spl.h"
6 6
7namespace Service { 7namespace Service::SPL {
8namespace SPL {
9 8
10SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "spl:") { 9SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "spl:") {
11 static const FunctionInfo functions[] = { 10 static const FunctionInfo functions[] = {
@@ -43,5 +42,4 @@ SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module),
43 RegisterHandlers(functions); 42 RegisterHandlers(functions);
44} 43}
45 44
46} // namespace SPL 45} // namespace Service::SPL
47} // namespace Service
diff --git a/src/core/hle/service/spl/spl.h b/src/core/hle/service/spl/spl.h
index 9fd6059af..69c4c1747 100644
--- a/src/core/hle/service/spl/spl.h
+++ b/src/core/hle/service/spl/spl.h
@@ -6,13 +6,11 @@
6 6
7#include "core/hle/service/spl/module.h" 7#include "core/hle/service/spl/module.h"
8 8
9namespace Service { 9namespace Service::SPL {
10namespace SPL {
11 10
12class SPL final : public Module::Interface { 11class SPL final : public Module::Interface {
13public: 12public:
14 explicit SPL(std::shared_ptr<Module> module); 13 explicit SPL(std::shared_ptr<Module> module);
15}; 14};
16 15
17} // namespace SPL 16} // namespace Service::SPL
18} // namespace Service