mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-10 15:16:34 +00:00
32 lines
No EOL
972 B
C
32 lines
No EOL
972 B
C
/**
|
|
* @file sm_ams.h
|
|
* @brief Service manager (sm) IPC wrapper for Atmosphere extensions.
|
|
* @author SciresM
|
|
* @copyright libnx Authors
|
|
*/
|
|
#pragma once
|
|
#include <switch/types.h>
|
|
#include <switch/kernel/event.h>
|
|
#include <switch/services/sm.h>
|
|
|
|
#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);
|
|
Service *smAtmosphereMitmGetServiceSession();
|
|
|
|
Result smAtmosphereMitmInstall(Handle *handle_out, Handle *query_out, SmServiceName name);
|
|
Result smAtmosphereMitmUninstall(SmServiceName name);
|
|
Result smAtmosphereMitmDeclareFuture(SmServiceName name);
|
|
Result smAtmosphereMitmAcknowledgeSession(Service *srv_out, u64 *pid_out, u64 *tid_out, SmServiceName name);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |