GALANTHUS / ABI FUNCTION REFERENCE
gln_get_tan_medium_active
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API int GLN_CALL gln_get_tan_medium_active(const gln_tan_medium_t* in_medium);
Purpose
Reports whether a TAN medium row is marked active by the bank response.
Return
Returns non-zero when the materialized TAN medium is marked active by the bank data.
| Type | Nullability | Ownership |
|---|---|---|
int | value | value |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_medium | input | const gln_tan_medium_t* | nullable | borrowed |
TAN Medium Fields
Returns non-zero when the materialized TAN medium is marked active by the bank data.
0 means either the row is absent or the materialized medium is not marked active. Validate the row pointer from gln_get_tan_medium_at first when that distinction matters.
Notes
Passing NULL for in_medium is allowed and returns 0.
The return value is non-zero for active media and 0 for inactive media.
Callers that need to distinguish a missing row from an inactive row should validate the row pointer returned by gln_get_tan_medium_at before calling this accessor.