mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-07 08:39:24 +02:00
applet: add appletGetMessageEvent
This commit is contained in:
parent
dca4fb772a
commit
2e2284109b
@ -2689,6 +2689,11 @@ Result appletSetHandlingHomeButtonShortPressedEnabled(bool flag);
|
|||||||
*/
|
*/
|
||||||
AppletInfo *appletGetAppletInfo(void);
|
AppletInfo *appletGetAppletInfo(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Gets the event associated with notification messages.
|
||||||
|
*/
|
||||||
|
Event *appletGetMessageEvent(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets a notification message, see \ref AppletMessage.
|
* @brief Gets a notification message, see \ref AppletMessage.
|
||||||
*/
|
*/
|
||||||
|
@ -2988,6 +2988,10 @@ AppletInfo *appletGetAppletInfo(void) {
|
|||||||
return &g_appletInfo;
|
return &g_appletInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Event *appletGetMessageEvent(void) {
|
||||||
|
return &g_appletMessageEvent;
|
||||||
|
}
|
||||||
|
|
||||||
Result appletGetMessage(u32 *msg) {
|
Result appletGetMessage(u32 *msg) {
|
||||||
Result rc=0;
|
Result rc=0;
|
||||||
if (msg==NULL) return MAKERESULT(Module_Libnx, LibnxError_BadInput);
|
if (msg==NULL) return MAKERESULT(Module_Libnx, LibnxError_BadInput);
|
||||||
|
Loading…
Reference in New Issue
Block a user