Union of values for transparently passing to callbacks instead of void*
Definition: xroad_common_types.h:98
void(* xroad_writer_on_done_t)(xroad_context_t user_data, size_t bytes_written, xroad_errno_t err_code)
Callback function type for handling completion of write operations.
Definition: xroad_base_writer.h:33
XROAD_WEAK xroad_errno_t xroad_writer_rotate(xroad_base_writer_t *writer, bool force, int flags)
Rotate the file associated with the writer. Flags is reserved.
XROAD_WEAK xroad_errno_t xroad_writer_sync(xroad_base_writer_t *writer, uint32_t flags)
Synchronize the recent writer operation(s). flags is reserved.
struct xroad_base_writer_s xroad_base_writer_t
Base structure for a file writer. Implementations should extend this structure.
Definition: xroad_base_writer.h:30
XROAD_WEAK ssize_t xroad_writer_writev(xroad_base_writer_t *writer, struct iovec *iov, int iovcnt, xroad_writer_on_done_t on_done, xroad_context_t user_data)
Write data to a file using the file writer. Returns number of bytes written or negative error code (x...