GALANTHUS / ABI FUNCTION REFERENCE
gln_get_backend_result_tan_modes
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API const gln_tan_modes_t* GLN_CALL gln_get_backend_result_tan_modes(
const gln_backend_result_t* in_result);
Purpose
Borrows the typed gln_tan_modes_t view from a backend result envelope whose kind is GLN_BACKEND_RESULT_KIND_TAN_MODES.
The accessor returns NULL when the envelope carries a different result kind.
Return
Returns the borrowed const gln_tan_modes_t* view only when gln_get_backend_result_kind reports GLN_BACKEND_RESULT_KIND_TAN_MODES.
| Type | Nullability | Ownership |
|---|---|---|
const gln_tan_modes_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_tan_modes_t* view only when gln_get_backend_result_kind reports GLN_BACKEND_RESULT_KIND_TAN_MODES.
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.
TAN Mode Semantics
The view contains the TAN mode rows materialized for the successful backend result envelope. Enumerate the rows with gln_get_tan_modes_count and gln_get_tan_mode_at.
The selected security function, when present, is exposed on the collection view through gln_get_tan_modes_selected; use it as a security-function code alongside the enumerated mode rows.
Ownership And Lifetime
The returned TAN mode view is borrowed from the backend result envelope. Destroying the envelope invalidates the view, rows returned from it, and strings returned by TAN mode accessors.
Notes
Passing NULL for in_result is allowed and returns NULL.
Call this after gln_retrieve_tan_modes has produced a success envelope and gln_get_backend_result_kind reports GLN_BACKEND_RESULT_KIND_TAN_MODES.
The returned view is borrowed from the envelope. Destroying the envelope invalidates the view, all rows returned from it, and all strings returned by row accessors.