[base] Introduce io_generator
This commit is contained in:
25
base/io.h
Normal file
25
base/io.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef BASE_IO_H
|
||||
#define BASE_IO_H
|
||||
|
||||
#include "base/types.h"
|
||||
#include <stdint.h>
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
||||
namespace base {
|
||||
enum req_op {
|
||||
REQ_OP_READ,
|
||||
REQ_OP_WRITE,
|
||||
REQ_OP_DISCARD
|
||||
};
|
||||
|
||||
struct io {
|
||||
unsigned op_;
|
||||
sector_t sector_;
|
||||
sector_t size_;
|
||||
};
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user