• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef FIO_OUTPUT_BUFFER_H
2 #define FIO_OUTPUT_BUFFER_H
3 
4 #include <unistd.h>
5 
6 struct buf_output {
7 	char *buf;
8 	size_t buflen;
9 	size_t max_buflen;
10 };
11 
12 void buf_output_init(struct buf_output *out);
13 void buf_output_free(struct buf_output *out);
14 size_t buf_output_add(struct buf_output *out, const char *buf, size_t len);
15 size_t buf_output_flush(struct buf_output *out);
16 
17 #endif
18