Function anjay_send_batch_builder_compile

Function Documentation

anjay_send_batch_t *anjay_send_batch_builder_compile(anjay_send_batch_builder_t **builder)

Makes a dynamically-allocated, reference-counted immutable data batch using data from batch builder. Created batch can be used for multiple calls of anjay_send().

Parameters:

builder – Pointer to pointer to batch builder. Set to NULL after successful return.

Returns:

Pointer to compiled batch in case of success, NULL otherwise. If this function fails, batch builder is not modified and must be freed manually with anjay_send_batch_builder_cleanup() if it’s not to be used anymore.