GALANTHUS / ABI FUNCTION REFERENCE
gln_close_backend
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API void GLN_CALL gln_close_backend(gln_backend_t* in_backend);
Purpose
Releases a caller-owned backend handle and backend-owned resources attached to it.
Return
Returns no value.
| Type | Nullability | Ownership |
|---|---|---|
void | value | value |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_backend | input | gln_backend_t* | nonnull | borrowed |
Notes
Passing NULL for in_backend is allowed and has no effect.
Closing a backend destroys the backend implementation object and its owned client resources. A FinTS backend also destroys the backend-owned PIN copy created during backend open.
Stores, token stores, key stores, and secrets that the caller passed into backend-open calls remain caller-owned unless that open call explicitly documented an internal copy.
Result envelopes already returned by backend operations are independently caller-owned and remain the caller's responsibility; destroy them with gln_destroy_backend_result.