mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Added appletRequestToGetForeground, appletLockForeground, appletUnlockForeground, appletPopFromGeneralChannel, and appletGetPopFromGeneralChannelEvent.
This commit is contained in:
parent
9049a12209
commit
3bbc181531
@ -1221,6 +1221,39 @@ Result appletGetGpuErrorDetectedSystemEvent(Event *out_event);
|
|||||||
|
|
||||||
// IHomeMenuFunctions
|
// IHomeMenuFunctions
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief RequestToGetForeground
|
||||||
|
* @note Only available with AppletType_SystemApplet.
|
||||||
|
*/
|
||||||
|
Result appletRequestToGetForeground(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief LockForeground
|
||||||
|
* @note Only available with AppletType_SystemApplet.
|
||||||
|
*/
|
||||||
|
Result appletLockForeground(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief UnlockForeground
|
||||||
|
* @note Only available with AppletType_SystemApplet.
|
||||||
|
*/
|
||||||
|
Result appletUnlockForeground(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Pops a storage from the general channel.
|
||||||
|
* @note Only available with AppletType_SystemApplet.
|
||||||
|
* @param[out] s Storage object.
|
||||||
|
*/
|
||||||
|
Result appletPopFromGeneralChannel(AppletStorage *s);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Gets an Event which is signaled when a new storage is available with \ref appletPopFromGeneralChannel.
|
||||||
|
* @note Only available with AppletType_SystemApplet.
|
||||||
|
* @note The Event must be closed by the user once finished with it.
|
||||||
|
* @param[out] out_event Output Event with autoclear=false.
|
||||||
|
*/
|
||||||
|
Result appletGetPopFromGeneralChannelEvent(Event *out_event);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets a \ref AppletLockAccessor for HomeButtonWriter.
|
* @brief Gets a \ref AppletLockAccessor for HomeButtonWriter.
|
||||||
* @note Only available with AppletType_SystemApplet.
|
* @note Only available with AppletType_SystemApplet.
|
||||||
|
@ -3932,6 +3932,41 @@ Result appletGetGpuErrorDetectedSystemEvent(Event *out_event) {
|
|||||||
|
|
||||||
// IHomeMenuFunctions
|
// IHomeMenuFunctions
|
||||||
|
|
||||||
|
Result appletRequestToGetForeground(void) {
|
||||||
|
if (__nx_applet_type != AppletType_SystemApplet)
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
|
|
||||||
|
return _appletCmdNoIO(&g_appletIFunctions, 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
Result appletLockForeground(void) {
|
||||||
|
if (__nx_applet_type != AppletType_SystemApplet)
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
|
|
||||||
|
return _appletCmdNoIO(&g_appletIFunctions, 11);
|
||||||
|
}
|
||||||
|
|
||||||
|
Result appletUnlockForeground(void) {
|
||||||
|
if (__nx_applet_type != AppletType_SystemApplet)
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
|
|
||||||
|
return _appletCmdNoIO(&g_appletIFunctions, 12);
|
||||||
|
}
|
||||||
|
|
||||||
|
Result appletPopFromGeneralChannel(AppletStorage *s) {
|
||||||
|
if (__nx_applet_type != AppletType_SystemApplet)
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
|
|
||||||
|
return _appletCmdNoInOutStorage(&g_appletIFunctions, s, 20);
|
||||||
|
}
|
||||||
|
|
||||||
|
Result appletGetPopFromGeneralChannelEvent(Event *out_event) {
|
||||||
|
if (__nx_applet_type != AppletType_SystemApplet)
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
|
|
||||||
|
return _appletGetEvent(&g_appletIFunctions, out_event, 21, false);
|
||||||
|
}
|
||||||
|
|
||||||
Result appletGetHomeButtonWriterLockAccessor(AppletLockAccessor *a) {
|
Result appletGetHomeButtonWriterLockAccessor(AppletLockAccessor *a) {
|
||||||
if (__nx_applet_type != AppletType_SystemApplet)
|
if (__nx_applet_type != AppletType_SystemApplet)
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
|
Loading…
Reference in New Issue
Block a user