summaryrefslogtreecommitdiff
path: root/lib/output_buffer.h
blob: 389ed5b7bc0a039d20b45ef52672a2c48f8650ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef FIO_OUTPUT_BUFFER_H
#define FIO_OUTPUT_BUFFER_H

#include <stddef.h>

struct buf_output {
	char *buf;
	size_t buflen;
	size_t max_buflen;
};

void buf_output_init(struct buf_output *out);
void buf_output_free(struct buf_output *out);
size_t buf_output_add(struct buf_output *out, const char *buf, size_t len);

#endif