Initialize a ProcessorApp instance.
Wires the internal static vtable into ptApp->tRoot.ptApi, stores ptBroker, ptPipeArray, the failure handler, and user data. Verifies that no required injected pointer is NULL before returning. Pipe initialization is deferred to the OnStart lifecycle callback; this function does not call JunoSb_PipeInit or RegisterSubscriber.
Must be called before any lifecycle operation. All caller-allocated storage; this function does not allocate any memory.
- Parameters
-
| ptApp | Caller-owned ProcessorApp storage; must be non-NULL. |
| ptBroker | Thread 2 broker root; must be non-NULL and outlive ptApp. |
| ptPipeArray | Backing array for the subscription pipe; must be non-NULL and outlive ptApp. |
| pfcnFailureHandler | Diagnostic callback invoked before any error return; may be NULL. |
| pvFailureUserData | Opaque pointer passed to the failure handler; may be NULL. |
- Returns
JUNO_STATUS_SUCCESS on success; JUNO_STATUS_NULLPTR_ERROR if any required pointer is NULL.