2019-12-09 12:57:37 +01:00
|
|
|
/**
|
|
|
|
* @file sm_ams.h
|
|
|
|
* @brief Service manager (sm) IPC wrapper for Atmosphere extensions.
|
|
|
|
* @author SciresM
|
|
|
|
* @copyright libnx Authors
|
|
|
|
*/
|
|
|
|
#pragma once
|
2022-03-06 21:08:20 +01:00
|
|
|
|
|
|
|
#if defined(ATMOSPHERE_OS_HORIZON)
|
|
|
|
|
2020-08-15 02:33:49 +02:00
|
|
|
#include <switch.h>
|
2019-12-09 12:57:37 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
Result smAtmosphereHasService(bool *out, SmServiceName name);
|
|
|
|
Result smAtmosphereWaitService(SmServiceName name);
|
|
|
|
Result smAtmosphereHasMitm(bool *out, SmServiceName name);
|
|
|
|
Result smAtmosphereWaitMitm(SmServiceName name);
|
|
|
|
|
|
|
|
Result smAtmosphereMitmInitialize(void);
|
|
|
|
void smAtmosphereMitmExit(void);
|
2021-04-11 02:59:54 +02:00
|
|
|
TipcService *smAtmosphereMitmGetServiceSession();
|
2019-12-09 12:57:37 +01:00
|
|
|
|
2021-04-11 02:59:54 +02:00
|
|
|
Result smAtmosphereOpenSession(TipcService *out);
|
|
|
|
void smAtmosphereCloseSession(TipcService *srv);
|
2019-12-09 12:57:37 +01:00
|
|
|
|
2021-04-11 02:59:54 +02:00
|
|
|
Result smAtmosphereMitmInstall(TipcService *fwd_srv, Handle *handle_out, Handle *query_out, SmServiceName name);
|
2019-12-09 12:57:37 +01:00
|
|
|
Result smAtmosphereMitmUninstall(SmServiceName name);
|
|
|
|
Result smAtmosphereMitmDeclareFuture(SmServiceName name);
|
2020-09-07 19:40:43 +02:00
|
|
|
Result smAtmosphereMitmClearFuture(SmServiceName name);
|
2019-12-09 12:57:37 +01:00
|
|
|
Result smAtmosphereMitmAcknowledgeSession(Service *srv_out, void *info_out, SmServiceName name);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2022-03-06 21:08:20 +01:00
|
|
|
#endif
|
|
|
|
|
2019-12-09 12:57:37 +01:00
|
|
|
#endif
|