mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-25 12:14:24 -04:00
ams: support building unit test programs on windows/linux/macos
This commit is contained in:
parent
9a38be201a
commit
64a97576d0
756 changed files with 33359 additions and 9372 deletions
|
@ -18,6 +18,7 @@
|
|||
|
||||
namespace ams::sm {
|
||||
|
||||
#if defined(ATMOSPHERE_OS_HORIZON)
|
||||
namespace {
|
||||
|
||||
constinit int g_ref_count = 0;
|
||||
|
@ -45,8 +46,8 @@ namespace ams::sm {
|
|||
}
|
||||
|
||||
/* Ordinary SM API. */
|
||||
Result GetService(Service *out, ServiceName name) {
|
||||
return smGetServiceWrapper(out, impl::ConvertName(name));
|
||||
Result GetServiceHandle(os::NativeHandle *out, ServiceName name) {
|
||||
return smGetServiceOriginal(out, impl::ConvertName(name));
|
||||
}
|
||||
|
||||
Result RegisterService(os::NativeHandle *out, ServiceName name, size_t max_sessions, bool is_light) {
|
||||
|
@ -65,5 +66,41 @@ namespace ams::sm {
|
|||
Result WaitService(ServiceName name) {
|
||||
return smAtmosphereWaitService(impl::ConvertName(name));
|
||||
}
|
||||
#else
|
||||
Result Initialize() {
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result Finalize() {
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
/* Ordinary SM API. */
|
||||
Result GetServiceHandle(os::NativeHandle *out, ServiceName name) {
|
||||
AMS_UNUSED(out, name);
|
||||
AMS_ABORT("TODO?");
|
||||
}
|
||||
|
||||
Result RegisterService(os::NativeHandle *out, ServiceName name, size_t max_sessions, bool is_light) {
|
||||
AMS_UNUSED(out, name, max_sessions, is_light);
|
||||
AMS_ABORT("TODO?");
|
||||
}
|
||||
|
||||
Result UnregisterService(ServiceName name) {
|
||||
AMS_UNUSED(name);
|
||||
AMS_ABORT("TODO?");
|
||||
}
|
||||
|
||||
/* Atmosphere extensions. */
|
||||
Result HasService(bool *out, ServiceName name) {
|
||||
AMS_UNUSED(out, name);
|
||||
AMS_ABORT("TODO?");
|
||||
}
|
||||
|
||||
Result WaitService(ServiceName name) {
|
||||
AMS_UNUSED(name);
|
||||
AMS_ABORT("TODO?");
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue