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