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

@@ -7,8 +7,7 @@
#include "core/hle/kernel/shared_memory.h"
#include "core/hle/service/gsp/gsp.h"
namespace Service {
namespace GSP {
namespace Service::GSP {
static std::weak_ptr<GSP_GPU> gsp_gpu;
@@ -32,5 +31,4 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<GSP_LCD>()->InstallAsService(service_manager);
}
} // namespace GSP
} // namespace Service
} // namespace Service::GSP

View File

@@ -11,8 +11,7 @@
#include "core/hle/service/gsp/gsp_gpu.h"
#include "core/hle/service/gsp/gsp_lcd.h"
namespace Service {
namespace GSP {
namespace Service::GSP {
/**
* Retrieves the framebuffer info stored in the GSP shared memory for the
* specified screen index and thread id.
@@ -29,5 +28,4 @@ FrameBufferUpdate* GetFrameBufferInfo(u32 thread_id, u32 screen_index);
void SignalInterrupt(InterruptId interrupt_id);
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace GSP
} // namespace Service
} // namespace Service::GSP

View File

@@ -23,8 +23,7 @@
// Main graphics debugger object - TODO: Here is probably not the best place for this
GraphicsDebugger g_debugger;
namespace Service {
namespace GSP {
namespace Service::GSP {
// Beginning address of HW regs
const u32 REGS_BEGIN = 0x1EB00000;
@@ -807,5 +806,4 @@ SessionData::~SessionData() {
used_thread_ids[thread_id] = false;
}
} // namespace GSP
} // namespace Service
} // namespace Service::GSP

View File

@@ -17,8 +17,7 @@ namespace Kernel {
class SharedMemory;
} // namespace Kernel
namespace Service {
namespace GSP {
namespace Service::GSP {
/// GSP interrupt ID
enum class InterruptId : u8 {
@@ -411,5 +410,4 @@ private:
ResultCode SetBufferSwap(u32 screen_id, const FrameBufferInfo& info);
} // namespace GSP
} // namespace Service
} // namespace Service::GSP

View File

@@ -5,8 +5,7 @@
#include "core/hle/ipc_helpers.h"
#include "core/hle/service/gsp/gsp_lcd.h"
namespace Service {
namespace GSP {
namespace Service::GSP {
GSP_LCD::GSP_LCD() : ServiceFramework("gsp::Lcd") {
static const FunctionInfo functions[] = {
@@ -23,5 +22,4 @@ GSP_LCD::GSP_LCD() : ServiceFramework("gsp::Lcd") {
RegisterHandlers(functions);
};
} // namespace GSP
} // namespace Service
} // namespace Service::GSP

View File

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