graph: fix bogus used initialized warning
[fio.git] / ioengine.h
index 997f90afcfe605feee231da08822289364be20dc..df5f8893dc76ed1174331f9f025bfbe55706c526 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef FIO_IOENGINE_H
 #define FIO_IOENGINE_H
 
+#include "compiler/compiler.h"
+#include "io_ddir.h"
+#include "debug.h"
+#include "file.h"
+
 #define FIO_IOOPS_VERSION      14
 
 enum {
@@ -14,6 +19,8 @@ enum {
        IO_U_F_VER_LIST         = 1 << 7,
 };
 
+struct thread_data;
+
 /*
  * The io unit
  */
@@ -121,6 +128,8 @@ struct ioengine_ops {
        int (*close_file)(struct thread_data *, struct fio_file *);
        int (*get_file_size)(struct thread_data *, struct fio_file *);
        void (*terminate)(struct thread_data *);
+       int (*io_u_init)(struct thread_data *, struct io_u *);
+       void (*io_u_free)(struct thread_data *, struct io_u *);
        int option_struct_size;
        struct fio_option *options;
        void *data;