pub unsafe extern "C" fn rpsCmdCallbackReportError(
    pContext: *const RpsCmdCallbackContext,
    errorCode: RpsResult
) -> RpsResult
Expand description

@brief Reports an error from a command callback context.

@param pContext Pointer to the context. Must be the primary context (passed to the command callback as argument). This function fails if the context is a secondary context (created via rpsCmdCloneContext). Must not be NULL.

@param errorCode Error code for the type of error to report. For errorCode == RPS_OK, this function does nothing.

@returns Result code of the operation. See RpsResult for more info.