lib/output_buffer: harden buf_output_free() and kill buf_output_clear()
[fio.git] / lib / output_buffer.h
CommitLineData
a666cab8
JA
1#ifndef FIO_OUTPUT_BUFFER_H
2#define FIO_OUTPUT_BUFFER_H
3
4#include <unistd.h>
5
6struct buf_output {
7 char *buf;
8 size_t buflen;
9 size_t max_buflen;
10};
11
e250c0a9 12void buf_output_init(struct buf_output *out);
a666cab8 13void buf_output_free(struct buf_output *out);
5768cc2b 14size_t buf_output_add(struct buf_output *out, const char *buf, size_t len);
a666cab8
JA
15
16#endif