Added appletPushToAppletBoundChannel and appletTryPopFromAppletBoundChannel.

This commit is contained in:
yellows8 2019-11-13 18:25:34 -05:00
parent 8fc57a4795
commit d88f67fe30
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 18 additions and 0 deletions

View File

@ -2130,6 +2130,21 @@ Result appletReadThemeStorage(void* buffer, size_t size, u64 offset, u64 *transf
*/
Result appletWriteThemeStorage(const void* buffer, size_t size, u64 offset);
/**
* @brief PushToAppletBoundChannel
* @note Only available with AppletType_SystemApplet, AppletType_LibraryApplet, or AppletType_OverlayApplet, on [9.0.0+].
* @note This uses \ref appletStorageClose automatically.
* @param[in] s Storage object.
*/
Result appletPushToAppletBoundChannel(AppletStorage *s);
/**
* @brief TryPopFromAppletBoundChannel
* @note Only available with AppletType_SystemApplet, AppletType_LibraryApplet, or AppletType_OverlayApplet, on [9.0.0+].
* @param[out] s Storage object.
*/
Result appletTryPopFromAppletBoundChannel(AppletStorage *s);
/**
* @brief Gets the DisplayLogicalResolution.
* @note Only available with AppletType_SystemApplet, AppletType_LibraryApplet, or AppletType_OverlayApplet, on [8.0.0+].

View File

@ -2599,6 +2599,9 @@ Result appletWriteThemeStorage(const void* buffer, size_t size, u64 offset) {
);
}
IPC_MAKE_CMD_IMPL_HOSVER(Result appletPushToAppletBoundChannel(AppletStorage *s), &g_appletIAppletCommonFunctions, 20, _appletCmdInStorage, (9,0,0), s)
IPC_MAKE_CMD_IMPL_HOSVER(Result appletTryPopFromAppletBoundChannel(AppletStorage *s), &g_appletIAppletCommonFunctions, 21, _appletCmdNoInOutStorage, (9,0,0), s)
IPC_MAKE_CMD_IMPL_HOSVER(Result appletGetDisplayLogicalResolution(s32 *width, s32 *height), &g_appletIAppletCommonFunctions, 40, _appletGetResolution, (8,0,0), width, height)
Result appletSetDisplayMagnification(float x, float y, float width, float height) {