GALANTHUS / ABI FUNCTION REFERENCE
gln_get_tan_mode_decoupled
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API int GLN_CALL gln_get_tan_mode_decoupled(const gln_tan_mode_t* in_tan_mode);
Purpose
Reports whether a TAN mode row represents a decoupled TAN mechanism.
Return
Returns non-zero when the materialized mode is marked as decoupled approval by the bank data.
| Type | Nullability | Ownership |
|---|---|---|
int | value | value |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_tan_mode | input | const gln_tan_mode_t* | nullable | borrowed |
TAN Mode Fields
Returns non-zero when the materialized mode is marked as decoupled approval by the bank data.
0 means either the row is absent or the materialized row is not marked decoupled. Validate the row pointer from gln_get_tan_mode_at first when that distinction matters.
Notes
Passing NULL for in_tan_mode is allowed and returns 0.
The return value is 1 for decoupled TAN modes and 0 for non-decoupled modes.
Callers that need to distinguish a missing row from a non-decoupled row should validate the row pointer returned by gln_get_tan_mode_at before calling this accessor.