diff options
| author | 2018-04-19 21:41:44 -0400 | |
|---|---|---|
| committer | 2018-04-19 22:20:28 -0400 | |
| commit | ccca5e7c2872d477cc7bef73ed141dc093b106ef (patch) | |
| tree | 17f5db413993ed4a6f1fec0ac27fb20b44328459 /src/core/hle/service/spl | |
| parent | Merge pull request #356 from lioncash/shader (diff) | |
| download | yuzu-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.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/spl/csrng.h | 6 | ||||
| -rw-r--r-- | src/core/hle/service/spl/module.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/spl/module.h | 6 | ||||
| -rw-r--r-- | src/core/hle/service/spl/spl.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/spl/spl.h | 6 |
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 | ||
| 7 | namespace Service { | 7 | namespace Service::SPL { |
| 8 | namespace SPL { | ||
| 9 | 8 | ||
| 10 | CSRNG::CSRNG(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "csrng") { | 9 | CSRNG::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 | ||
| 9 | namespace Service { | 9 | namespace Service::SPL { |
| 10 | namespace SPL { | ||
| 11 | 10 | ||
| 12 | class CSRNG final : public Module::Interface { | 11 | class CSRNG final : public Module::Interface { |
| 13 | public: | 12 | public: |
| 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 | ||
| 14 | namespace Service { | 14 | namespace Service::SPL { |
| 15 | namespace SPL { | ||
| 16 | 15 | ||
| 17 | Module::Interface::Interface(std::shared_ptr<Module> module, const char* name) | 16 | Module::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 | ||
| 9 | namespace Service { | 9 | namespace Service::SPL { |
| 10 | namespace SPL { | ||
| 11 | 10 | ||
| 12 | class Module final { | 11 | class Module final { |
| 13 | public: | 12 | public: |
| @@ -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. |
| 26 | void InstallInterfaces(SM::ServiceManager& service_manager); | 25 | void 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 | ||
| 7 | namespace Service { | 7 | namespace Service::SPL { |
| 8 | namespace SPL { | ||
| 9 | 8 | ||
| 10 | SPL::SPL(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "spl:") { | 9 | SPL::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 | ||
| 9 | namespace Service { | 9 | namespace Service::SPL { |
| 10 | namespace SPL { | ||
| 11 | 10 | ||
| 12 | class SPL final : public Module::Interface { | 11 | class SPL final : public Module::Interface { |
| 13 | public: | 12 | public: |
| 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 | ||