GALANTHUS / ABI FUNCTION REFERENCE
gln_set_batch_transfer_request_header
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API gln_status_t GLN_CALL gln_set_batch_transfer_request_header(
gln_batch_transfer_request_builder_t* in_builder,
const gln_batch_transfer_request_header_t* in_header,
gln_error_t* out_error_or_null);
Purpose
Copies the values from in_header into the caller-owned gln_batch_transfer_request_builder_t, replacing any header previously set on the builder.
The header struct is borrowed for the duration of the call; the builder retains an internal copy and does not keep the caller's pointer.
Nullable parameter slots (out_error_or_null) may be passed as NULL; all other non-value parameters follow the nullability shown in the table.
Return
Returns GLN_OK on success and a non-OK gln_status_t value on failure.
| Type | Nullability | Ownership |
|---|---|---|
gln_status_t | value | value |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_builder | input | gln_batch_transfer_request_builder_t* | nonnull | borrowed |
in_header | input | const gln_batch_transfer_request_header_t* | nonnull | borrowed |
out_error_or_null | output | gln_error_t* | nullable | caller_allocated_output |