ams: support building unit test programs on windows/linux/macos

This commit is contained in:
Michael Scire
2022-03-06 12:08:20 -08:00
committed by SciresM
parent 9a38be201a
commit 64a97576d0
756 changed files with 33359 additions and 9372 deletions

View File

@@ -25,7 +25,7 @@ namespace ams::sm {
Result Finalize();
/* Ordinary SM API. */
Result GetService(Service *out, ServiceName name);
Result GetServiceHandle(os::NativeHandle *out, ServiceName name);
Result RegisterService(os::NativeHandle *out, ServiceName name, size_t max_sessions, bool is_light);
Result UnregisterService(ServiceName name);

View File

@@ -15,9 +15,10 @@
*/
#pragma once
#include <stratosphere/sm/sm_types.hpp>
#include <stratosphere/sf/sf_mitm_config.hpp>
#if AMS_SF_MITM_SUPPORTED
namespace ams::sm::mitm {
/* Mitm API. */
@@ -30,3 +31,4 @@ namespace ams::sm::mitm {
Result WaitMitm(ServiceName name);
}
#endif