mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-01-31 12:13:47 +01:00
Simplify namespacing
This commit is contained in:
parent
4be88c7180
commit
e86e1588e3
@ -20,7 +20,7 @@
|
|||||||
#include "sm_dmnt_service.hpp"
|
#include "sm_dmnt_service.hpp"
|
||||||
#include "sm_service_manager.hpp"
|
#include "sm_service_manager.hpp"
|
||||||
|
|
||||||
namespace sts { namespace sm {
|
namespace sts::sm {
|
||||||
|
|
||||||
Result DmntService::AtmosphereGetRecord(Out<ServiceRecord> record, ServiceName service) {
|
Result DmntService::AtmosphereGetRecord(Out<ServiceRecord> record, ServiceName service) {
|
||||||
return sm::GetServiceRecord(record.GetPointer(), service);
|
return sm::GetServiceRecord(record.GetPointer(), service);
|
||||||
@ -34,4 +34,4 @@ namespace sts { namespace sm {
|
|||||||
record_size.SetValue(sizeof(ServiceRecord));
|
record_size.SetValue(sizeof(ServiceRecord));
|
||||||
}
|
}
|
||||||
|
|
||||||
}}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include <stratosphere.hpp>
|
#include <stratosphere.hpp>
|
||||||
#include "sm_types.hpp"
|
#include "sm_types.hpp"
|
||||||
|
|
||||||
namespace sts { namespace sm {
|
namespace sts::sm {
|
||||||
|
|
||||||
/* Command IDs. */
|
/* Command IDs. */
|
||||||
enum DmntServiceCmd {
|
enum DmntServiceCmd {
|
||||||
@ -43,4 +43,4 @@ namespace sts { namespace sm {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}}
|
}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include "sm_manager_service.hpp"
|
#include "sm_manager_service.hpp"
|
||||||
#include "sm_service_manager.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) {
|
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);
|
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));
|
R_ASSERT(sm::HasMitm(out.GetPointer(), service));
|
||||||
}
|
}
|
||||||
|
|
||||||
}}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include <stratosphere.hpp>
|
#include <stratosphere.hpp>
|
||||||
#include "sm_types.hpp"
|
#include "sm_types.hpp"
|
||||||
|
|
||||||
namespace sts { namespace sm {
|
namespace sts::sm {
|
||||||
|
|
||||||
/* Command IDs. */
|
/* Command IDs. */
|
||||||
enum ManagerServiceCmd {
|
enum ManagerServiceCmd {
|
||||||
@ -48,4 +48,4 @@ namespace sts { namespace sm {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "sm_service_manager.hpp"
|
#include "sm_service_manager.hpp"
|
||||||
|
|
||||||
namespace sts { namespace sm {
|
namespace sts::sm {
|
||||||
|
|
||||||
/* Anonymous namespace for implementation details. */
|
/* Anonymous namespace for implementation details. */
|
||||||
namespace {
|
namespace {
|
||||||
@ -720,4 +720,4 @@ namespace sts { namespace sm {
|
|||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
}}
|
}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
#include "sm_types.hpp"
|
#include "sm_types.hpp"
|
||||||
|
|
||||||
namespace sts { namespace sm {
|
namespace sts::sm {
|
||||||
|
|
||||||
/* Initialization. */
|
/* Initialization. */
|
||||||
void InitializeRegistrationLists();
|
void InitializeRegistrationLists();
|
||||||
@ -48,4 +48,4 @@ namespace sts { namespace sm {
|
|||||||
/* Deferral extension (works around FS bug). */
|
/* Deferral extension (works around FS bug). */
|
||||||
Result EndInitialDefers();
|
Result EndInitialDefers();
|
||||||
|
|
||||||
}}
|
}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
namespace sts { namespace sm {
|
namespace sts::sm {
|
||||||
|
|
||||||
struct ServiceName {
|
struct ServiceName {
|
||||||
static constexpr size_t MaxLength = 8;
|
static constexpr size_t MaxLength = 8;
|
||||||
@ -68,4 +68,4 @@ namespace sts { namespace sm {
|
|||||||
/* For process validation. */
|
/* For process validation. */
|
||||||
static constexpr u64 InvalidProcessId = static_cast<u64>(-1ull);
|
static constexpr u64 InvalidProcessId = static_cast<u64>(-1ull);
|
||||||
|
|
||||||
}}
|
}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include "sm_user_service.hpp"
|
#include "sm_user_service.hpp"
|
||||||
#include "sm_service_manager.hpp"
|
#include "sm_service_manager.hpp"
|
||||||
|
|
||||||
namespace sts { namespace sm {
|
namespace sts::sm {
|
||||||
|
|
||||||
Result UserService::Initialize(PidDescriptor pid) {
|
Result UserService::Initialize(PidDescriptor pid) {
|
||||||
this->pid = pid.pid;
|
this->pid = pid.pid;
|
||||||
@ -70,4 +70,4 @@ namespace sts { namespace sm {
|
|||||||
return sm::AssociatePidTidForMitm(pid, tid);
|
return sm::AssociatePidTidForMitm(pid, tid);
|
||||||
}
|
}
|
||||||
|
|
||||||
}}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include <stratosphere.hpp>
|
#include <stratosphere.hpp>
|
||||||
#include "sm_types.hpp"
|
#include "sm_types.hpp"
|
||||||
|
|
||||||
namespace sts { namespace sm {
|
namespace sts::sm {
|
||||||
|
|
||||||
/* Command IDs. */
|
/* Command IDs. */
|
||||||
enum UserServiceCmd {
|
enum UserServiceCmd {
|
||||||
@ -67,4 +67,4 @@ namespace sts { namespace sm {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user