ReXGlue SDK
Loading...
Searching...
No Matches
rex::xam::AppManager Class Reference

Public Member Functions

REX_XAM_API void RegisterApp (std::unique_ptr< XAMApplet > app)
REX_XAM_API rex::kernel::X_HRESULT DispatchMessageSync (u32 app_id, u32 message, u32 buffer_ptr, u32 buffer_length)
REX_XAM_API rex::kernel::X_HRESULT DispatchMessageAsync (u32 app_id, u32 message, u32 buffer_ptr, u32 buffer_length)

Member Function Documentation

◆ DispatchMessageAsync()

REX_XAM_API rex::kernel::X_HRESULT rex::xam::AppManager::DispatchMessageAsync ( u32 app_id,
u32 message,
u32 buffer_ptr,
u32 buffer_length )

Sends an asynchronous message to the app with the given ID, delivered through DispatchMessageSync.

Parameters
app_idThe ID of the receiving app.
buffer_ptrThe guest address of the message buffer.
Returns
X_E_NOTFOUND when no app has the ID, else the result of the app.

◆ DispatchMessageSync()

REX_XAM_API rex::kernel::X_HRESULT rex::xam::AppManager::DispatchMessageSync ( u32 app_id,
u32 message,
u32 buffer_ptr,
u32 buffer_length )

Sends a message to the app with the given ID.

Parameters
app_idThe ID of the receiving app.
buffer_ptrThe guest address of the message buffer.
Returns
X_E_NOTFOUND when no app has the ID, else the result of the app.

◆ RegisterApp()

REX_XAM_API void rex::xam::AppManager::RegisterApp ( std::unique_ptr< XAMApplet > app)

Adds an app, whose ID must not be registered yet.

Parameters
appThe app, owned by the manager afterwards.

The documentation for this class was generated from the following file: