GALANTHUS / ABI FUNCTION REFERENCE
gln_get_transaction_source_format
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API const char* GLN_CALL gln_get_transaction_source_format(const gln_transaction_t* in_transaction);
Purpose
Returns the source format used to parse the transaction row.
Return
Returns the source format from the transaction row, or NULL when it is not available.
| Type | Nullability | Ownership |
|---|---|---|
const char* | nullable | borrowed |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_transaction | input | const gln_transaction_t* | nullable | borrowed |
Transaction Semantics
Use source_format as a provenance marker for the parser or plugin path that produced the row. Treat it as an open string.
Owned producers emit values such as MT940, CAMT052, CAMT053, CAMT054, fints41_xml, revolut_json, and wise_statement. Plugin-provided transaction rows can carry other marker strings.
Notes
Passing NULL for in_transaction is allowed and returns NULL.
Rows returned by the matching _at accessor carry this field as part of the materialized typed result.
The returned pointer is borrowed from the owning backend result envelope and becomes invalid when that envelope is destroyed.