Refactor #includes and headers
[fio.git] / lib / output_buffer.h
index 4a35839b62e7bb59b7d507cc6ca1f333f278b407..389ed5b7bc0a039d20b45ef52672a2c48f8650ba 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef FIO_OUTPUT_BUFFER_H
 #define FIO_OUTPUT_BUFFER_H
 
-#include <unistd.h>
+#include <stddef.h>
 
 struct buf_output {
        char *buf;
@@ -9,9 +9,8 @@ struct buf_output {
        size_t max_buflen;
 };
 
-void buf_output_init(struct buf_output *out, int index);
+void buf_output_init(struct buf_output *out);
 void buf_output_free(struct buf_output *out);
-void buf_output_add(struct buf_output *out, const char *buf, size_t len);
-void buf_output_flush(struct buf_output *out);
+size_t buf_output_add(struct buf_output *out, const char *buf, size_t len);
 
 #endif