ams: support building unit test programs on windows/linux/macos
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user