2019-07-18 03:04:00 +00:00
|
|
|
/**
|
|
|
|
* @file sm_ams.h
|
|
|
|
* @brief Service manager (sm) IPC wrapper for Atmosphere extensions.
|
|
|
|
* @author SciresM
|
|
|
|
* @copyright libnx Authors
|
|
|
|
*/
|
|
|
|
#pragma once
|
2019-10-20 00:42:53 +00:00
|
|
|
#include <switch/types.h>
|
|
|
|
#include <switch/kernel/event.h>
|
|
|
|
#include <switch/services/sm.h>
|
2019-07-18 03:04:00 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-10-23 07:07:20 +00:00
|
|
|
Result smAtmosphereHasService(bool *out, SmServiceName name);
|
|
|
|
Result smAtmosphereWaitService(SmServiceName name);
|
|
|
|
Result smAtmosphereHasMitm(bool *out, SmServiceName name);
|
|
|
|
Result smAtmosphereWaitMitm(SmServiceName name);
|
2019-07-18 03:04:00 +00:00
|
|
|
|
|
|
|
Result smAtmosphereMitmInitialize(void);
|
|
|
|
void smAtmosphereMitmExit(void);
|
2019-10-20 00:42:53 +00:00
|
|
|
Service *smAtmosphereMitmGetServiceSession();
|
2019-07-18 03:04:00 +00:00
|
|
|
|
2019-11-21 07:58:18 +00:00
|
|
|
Result smAtmosphereOpenSession(Service *out);
|
|
|
|
void smAtmosphereCloseSession(Service *srv);
|
|
|
|
|
|
|
|
Result smAtmosphereMitmInstall(Service *fwd_srv, Handle *handle_out, Handle *query_out, SmServiceName name);
|
2019-10-23 07:07:20 +00:00
|
|
|
Result smAtmosphereMitmUninstall(SmServiceName name);
|
|
|
|
Result smAtmosphereMitmDeclareFuture(SmServiceName name);
|
2019-11-21 12:03:19 +00:00
|
|
|
Result smAtmosphereMitmAcknowledgeSession(Service *srv_out, void *info_out, SmServiceName name);
|
2019-07-18 03:04:00 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|