service: Use nested namespace specifiers where applicable

Tidies up namespace declarations
This commit is contained in:
Lioncash 2018-04-19 21:41:44 -04:00
parent 17ad56c1dc
commit ccca5e7c28
136 changed files with 273 additions and 570 deletions

View file

@ -9,8 +9,7 @@
#include "core/hle/kernel/client_session.h"
#include "core/hle/service/set/set.h"
namespace Service {
namespace Set {
namespace Service::Set {
void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
@ -41,5 +40,4 @@ SET::SET() : ServiceFramework("set") {
RegisterHandlers(functions);
}
} // namespace Set
} // namespace Service
} // namespace Service::Set

View file

@ -6,8 +6,7 @@
#include "core/hle/service/service.h"
namespace Service {
namespace Set {
namespace Service::Set {
class SET final : public ServiceFramework<SET> {
public:
@ -18,5 +17,4 @@ private:
void GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx);
};
} // namespace Set
} // namespace Service
} // namespace Service::Set

View file

@ -4,8 +4,7 @@
#include "core/hle/service/set/set_cal.h"
namespace Service {
namespace Set {
namespace Service::Set {
SET_CAL::SET_CAL() : ServiceFramework("set:cal") {
static const FunctionInfo functions[] = {
@ -45,5 +44,4 @@ SET_CAL::SET_CAL() : ServiceFramework("set:cal") {
RegisterHandlers(functions);
}
} // namespace Set
} // namespace Service
} // namespace Service::Set

View file

@ -6,8 +6,7 @@
#include "core/hle/service/service.h"
namespace Service {
namespace Set {
namespace Service::Set {
class SET_CAL final : public ServiceFramework<SET_CAL> {
public:
@ -15,5 +14,4 @@ public:
~SET_CAL() = default;
};
} // namespace Set
} // namespace Service
} // namespace Service::Set

View file

@ -4,8 +4,7 @@
#include "core/hle/service/set/set_fd.h"
namespace Service {
namespace Set {
namespace Service::Set {
SET_FD::SET_FD() : ServiceFramework("set:fd") {
static const FunctionInfo functions[] = {
@ -21,5 +20,4 @@ SET_FD::SET_FD() : ServiceFramework("set:fd") {
RegisterHandlers(functions);
}
} // namespace Set
} // namespace Service
} // namespace Service::Set

View file

@ -6,8 +6,7 @@
#include "core/hle/service/service.h"
namespace Service {
namespace Set {
namespace Service::Set {
class SET_FD final : public ServiceFramework<SET_FD> {
public:
@ -15,5 +14,4 @@ public:
~SET_FD() = default;
};
} // namespace Set
} // namespace Service
} // namespace Service::Set

View file

@ -7,8 +7,7 @@
#include "core/hle/kernel/client_port.h"
#include "core/hle/service/set/set_sys.h"
namespace Service {
namespace Set {
namespace Service::Set {
void SET_SYS::GetColorSetId(Kernel::HLERequestContext& ctx) {
@ -173,5 +172,4 @@ SET_SYS::SET_SYS() : ServiceFramework("set:sys") {
RegisterHandlers(functions);
}
} // namespace Set
} // namespace Service
} // namespace Service::Set

View file

@ -6,8 +6,7 @@
#include "core/hle/service/service.h"
namespace Service {
namespace Set {
namespace Service::Set {
class SET_SYS final : public ServiceFramework<SET_SYS> {
public:
@ -18,5 +17,4 @@ private:
void GetColorSetId(Kernel::HLERequestContext& ctx);
};
} // namespace Set
} // namespace Service
} // namespace Service::Set

View file

@ -8,8 +8,7 @@
#include "core/hle/service/set/set_sys.h"
#include "core/hle/service/set/settings.h"
namespace Service {
namespace Set {
namespace Service::Set {
void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<SET>()->InstallAsService(service_manager);
@ -18,5 +17,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<SET_SYS>()->InstallAsService(service_manager);
}
} // namespace Set
} // namespace Service
} // namespace Service::Set

View file

@ -6,11 +6,9 @@
#include "core/hle/service/service.h"
namespace Service {
namespace Set {
namespace Service::Set {
/// Registers all Settings services with the specified service manager.
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace Set
} // namespace Service
} // namespace Service::Set