GALANTHUS / ABI FUNCTION REFERENCE
gln_get_backend_result_batch_transfer_submission
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API const gln_batch_transfer_submission_t* GLN_CALL gln_get_backend_result_batch_transfer_submission(
const gln_backend_result_t* in_result);
Purpose
Projects a backend result envelope into the batch transfer submission view when the envelope kind is GLN_BACKEND_RESULT_KIND_BATCH_TRANSFER_SUBMISSION. It returns NULL when the envelope has a different kind.
The returned pointer is borrowed from the parent envelope and becomes invalid when gln_destroy_backend_result releases that envelope.
Return
Returns the borrowed const gln_batch_transfer_submission_t* view only when gln_get_backend_result_kind reports GLN_BACKEND_RESULT_KIND_BATCH_TRANSFER_SUBMISSION.
| Type | Nullability | Ownership |
|---|---|---|
const gln_batch_transfer_submission_t* | nullable | borrowed |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_result | input | const gln_backend_result_t* | nullable | borrowed |
Projection Semantics
Returns the borrowed const gln_batch_transfer_submission_t* view only when gln_get_backend_result_kind reports GLN_BACKEND_RESULT_KIND_BATCH_TRANSFER_SUBMISSION.
The accessor checks the envelope kind directly; it does not check gln_get_backend_result_outcome or gln_get_backend_result_status. Callers should inspect outcome, status, and kind before projecting a typed success payload.
NULL means either in_result is NULL or the envelope kind does not match this projection.
The returned view is borrowed from the envelope. Destroying the envelope invalidates the view, rows or nested handles borrowed from it, and strings returned by field accessors.
Notes
Passing NULL for in_result is allowed and returns NULL.
Call this only after gln_get_backend_result_outcome reports GLN_BACKEND_OUTCOME_SUCCESS and gln_get_backend_result_kind reports GLN_BACKEND_RESULT_KIND_BATCH_TRANSFER_SUBMISSION.
The returned typed view is borrowed from the envelope. Destroying the envelope invalidates the view and all borrowed fields exposed by its accessors.
Batch-transfer submission views are produced by successful FinTS or EBICS batch-transfer envelopes. Unsupported backend kinds do not produce this C API write-path success view.
Action-required envelopes carry interrupt details and a continuation, not a gln_batch_transfer_submission_t view. Resume the operation and read this accessor only after a success envelope is produced.