Simplify namespacing

This commit is contained in:
Michael Scire 2019-06-20 18:32:00 -07:00
parent 4be88c7180
commit e86e1588e3
9 changed files with 18 additions and 18 deletions

View file

@ -20,7 +20,7 @@
#include "sm_dmnt_service.hpp"
#include "sm_service_manager.hpp"
namespace sts { namespace sm {
namespace sts::sm {
Result DmntService::AtmosphereGetRecord(Out<ServiceRecord> record, ServiceName service) {
return sm::GetServiceRecord(record.GetPointer(), service);
@ -34,4 +34,4 @@ namespace sts { namespace sm {
record_size.SetValue(sizeof(ServiceRecord));
}
}}
}

View file

@ -19,7 +19,7 @@
#include <stratosphere.hpp>
#include "sm_types.hpp"
namespace sts { namespace sm {
namespace sts::sm {
/* Command IDs. */
enum DmntServiceCmd {
@ -43,4 +43,4 @@ namespace sts { namespace sm {
};
};
}}
}

View file

@ -20,7 +20,7 @@
#include "sm_manager_service.hpp"
#include "sm_service_manager.hpp"
namespace sts { namespace sm {
namespace sts::sm {
Result ManagerService::RegisterProcess(u64 pid, InBuffer<u8> acid_sac, InBuffer<u8> aci0_sac) {
return sm::RegisterProcess(pid, acid_sac.buffer, acid_sac.num_elements, aci0_sac.buffer, aci0_sac.num_elements);
@ -38,4 +38,4 @@ namespace sts { namespace sm {
R_ASSERT(sm::HasMitm(out.GetPointer(), service));
}
}}
}

View file

@ -19,7 +19,7 @@
#include <stratosphere.hpp>
#include "sm_types.hpp"
namespace sts { namespace sm {
namespace sts::sm {
/* Command IDs. */
enum ManagerServiceCmd {
@ -48,4 +48,4 @@ namespace sts { namespace sm {
};
};
}}
}

View file

@ -19,7 +19,7 @@
#include "sm_service_manager.hpp"
namespace sts { namespace sm {
namespace sts::sm {
/* Anonymous namespace for implementation details. */
namespace {
@ -720,4 +720,4 @@ namespace sts { namespace sm {
return ResultSuccess;
}
}}
}

View file

@ -18,7 +18,7 @@
#include <switch.h>
#include "sm_types.hpp"
namespace sts { namespace sm {
namespace sts::sm {
/* Initialization. */
void InitializeRegistrationLists();
@ -48,4 +48,4 @@ namespace sts { namespace sm {
/* Deferral extension (works around FS bug). */
Result EndInitialDefers();
}}
}

View file

@ -17,7 +17,7 @@
#pragma once
#include <cstring>
namespace sts { namespace sm {
namespace sts::sm {
struct ServiceName {
static constexpr size_t MaxLength = 8;
@ -68,4 +68,4 @@ namespace sts { namespace sm {
/* For process validation. */
static constexpr u64 InvalidProcessId = static_cast<u64>(-1ull);
}}
}

View file

@ -20,7 +20,7 @@
#include "sm_user_service.hpp"
#include "sm_service_manager.hpp"
namespace sts { namespace sm {
namespace sts::sm {
Result UserService::Initialize(PidDescriptor pid) {
this->pid = pid.pid;
@ -70,4 +70,4 @@ namespace sts { namespace sm {
return sm::AssociatePidTidForMitm(pid, tid);
}
}}
}

View file

@ -19,7 +19,7 @@
#include <stratosphere.hpp>
#include "sm_types.hpp"
namespace sts { namespace sm {
namespace sts::sm {
/* Command IDs. */
enum UserServiceCmd {
@ -67,4 +67,4 @@ namespace sts { namespace sm {
};
};
}}
}