Initialize a MonitorApp instance.
Wires the internal vtable, stores all injected dependencies, and verifies that no required pointer is NULL. The pipe (tPipe) is NOT initialized here; pipe initialization is deferred to OnStart so that the broker registration occurs at the correct point in the application lifecycle.
The caller must ensure:
ptApp, ptBroker, and ptPipeArray are all non-NULL.
ptBroker and ptPipeArray outlive this MONITOR_APP_T instance.
- Parameters
-
| ptApp | Caller-owned app storage; must be non-NULL. |
| ptBroker | Thread 1's broker instance; must be non-NULL. |
| ptPipeArray | Backing array for the pipe's internal queue; must be non-NULL and must outlive the pipe registration. |
| pfcnFailureHandler | Diagnostic callback invoked before any error return; may be NULL. |
| pvFailureUserData | Opaque pointer passed through to the failure handler; may be NULL. |
- Returns
JUNO_STATUS_SUCCESS on success; JUNO_STATUS_NULLPTR_ERROR if any required pointer is NULL.