service: Use nested namespace specifiers where applicable

There were a few places where nested namespace specifiers weren't being
used where they could be within the service code. This amends that to
make the namespacing a tiny bit more compact.
This commit is contained in:
Lioncash 2018-09-22 14:23:08 +02:00 committed by fearlessTobi
parent 80cdfe1c45
commit 46da908a00
221 changed files with 443 additions and 902 deletions

View file

@ -10,8 +10,7 @@
#include "core/hle/service/cecd/cecd_s.h"
#include "core/hle/service/cecd/cecd_u.h"
namespace Service {
namespace CECD {
namespace Service::CECD {
void Module::Interface::GetCecStateAbbreviated(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp(ctx, 0x0E, 0, 0);
@ -59,5 +58,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<CECD_U>(cecd)->InstallAsService(service_manager);
}
} // namespace CECD
} // namespace Service
} // namespace Service::CECD

View file

@ -7,8 +7,7 @@
#include "core/hle/kernel/event.h"
#include "core/hle/service/service.h"
namespace Service {
namespace CECD {
namespace Service::CECD {
enum class CecStateAbbreviated : u32 {
CEC_STATE_ABBREV_IDLE = 1, ///< Corresponds to CEC_STATE_IDLE
@ -73,5 +72,4 @@ private:
/// Initialize CECD service(s)
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace CECD
} // namespace Service
} // namespace Service::CECD

View file

@ -4,8 +4,7 @@
#include "core/hle/service/cecd/cecd_ndm.h"
namespace Service {
namespace CECD {
namespace Service::CECD {
CECD_NDM::CECD_NDM(std::shared_ptr<Module> cecd)
: Module::Interface(std::move(cecd), "cecd:ndm", DefaultMaxSessions) {
@ -21,5 +20,4 @@ CECD_NDM::CECD_NDM(std::shared_ptr<Module> cecd)
RegisterHandlers(functions);
}
} // namespace CECD
} // namespace Service
} // namespace Service::CECD

View file

@ -6,13 +6,11 @@
#include "core/hle/service/cecd/cecd.h"
namespace Service {
namespace CECD {
namespace Service::CECD {
class CECD_NDM final : public Module::Interface {
public:
explicit CECD_NDM(std::shared_ptr<Module> cecd);
};
} // namespace CECD
} // namespace Service
} // namespace Service::CECD

View file

@ -4,8 +4,7 @@
#include "core/hle/service/cecd/cecd_s.h"
namespace Service {
namespace CECD {
namespace Service::CECD {
CECD_S::CECD_S(std::shared_ptr<Module> cecd)
: Module::Interface(std::move(cecd), "cecd:s", DefaultMaxSessions) {
@ -34,5 +33,4 @@ CECD_S::CECD_S(std::shared_ptr<Module> cecd)
RegisterHandlers(functions);
}
} // namespace CECD
} // namespace Service
} // namespace Service::CECD

View file

@ -6,13 +6,11 @@
#include "core/hle/service/cecd/cecd.h"
namespace Service {
namespace CECD {
namespace Service::CECD {
class CECD_S final : public Module::Interface {
public:
explicit CECD_S(std::shared_ptr<Module> cecd);
};
} // namespace CECD
} // namespace Service
} // namespace Service::CECD

View file

@ -4,8 +4,7 @@
#include "core/hle/service/cecd/cecd_u.h"
namespace Service {
namespace CECD {
namespace Service::CECD {
CECD_U::CECD_U(std::shared_ptr<Module> cecd)
: Module::Interface(std::move(cecd), "cecd:u", DefaultMaxSessions) {
@ -34,5 +33,4 @@ CECD_U::CECD_U(std::shared_ptr<Module> cecd)
RegisterHandlers(functions);
}
} // namespace CECD
} // namespace Service
} // namespace Service::CECD

View file

@ -6,13 +6,11 @@
#include "core/hle/service/cecd/cecd.h"
namespace Service {
namespace CECD {
namespace Service::CECD {
class CECD_U final : public Module::Interface {
public:
explicit CECD_U(std::shared_ptr<Module> cecd);
};
} // namespace CECD
} // namespace Service
} // namespace Service::CECD