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,14 +7,11 @@
#include "core/hle/service/news/news_u.h"
#include "core/hle/service/service.h"
namespace Service {
namespace NEWS {
namespace Service::NEWS {
void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<NEWS_S>()->InstallAsService(service_manager);
std::make_shared<NEWS_U>()->InstallAsService(service_manager);
}
} // namespace NEWS
} // namespace Service
} // namespace Service::NEWS

View file

@ -4,10 +4,8 @@
#pragma once
namespace Service {
namespace NEWS {
namespace Service::NEWS {
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace NEWS
} // namespace Service
} // namespace Service::NEWS

View file

@ -5,8 +5,7 @@
#include "core/hle/ipc_helpers.h"
#include "core/hle/service/news/news_s.h"
namespace Service {
namespace NEWS {
namespace Service::NEWS {
void NEWS_S::GetTotalNotifications(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp(ctx, 0x5, 0, 0);
@ -38,5 +37,4 @@ NEWS_S::NEWS_S() : ServiceFramework("news:s", 2) {
RegisterHandlers(functions);
}
} // namespace NEWS
} // namespace Service
} // namespace Service::NEWS

View file

@ -7,8 +7,7 @@
#include <memory>
#include "core/hle/service/service.h"
namespace Service {
namespace NEWS {
namespace Service::NEWS {
class NEWS_S final : public ServiceFramework<NEWS_S> {
public:
@ -27,5 +26,4 @@ private:
void GetTotalNotifications(Kernel::HLERequestContext& ctx);
};
} // namespace NEWS
} // namespace Service
} // namespace Service::NEWS

View file

@ -4,8 +4,7 @@
#include "core/hle/service/news/news_u.h"
namespace Service {
namespace NEWS {
namespace Service::NEWS {
NEWS_U::NEWS_U() : ServiceFramework("news:u", 1) {
const FunctionInfo functions[] = {
@ -14,5 +13,4 @@ NEWS_U::NEWS_U() : ServiceFramework("news:u", 1) {
RegisterHandlers(functions);
}
} // namespace NEWS
} // namespace Service
} // namespace Service::NEWS

View file

@ -7,13 +7,11 @@
#include <memory>
#include "core/hle/service/service.h"
namespace Service {
namespace NEWS {
namespace Service::NEWS {
class NEWS_U final : public ServiceFramework<NEWS_U> {
public:
NEWS_U();
};
} // namespace NEWS
} // namespace Service
} // namespace Service::NEWS