xref: /haiku/src/add-ons/kernel/file_systems/userlandfs/server/IORequestInfo.h (revision e0ef64750f3169cd634bb2f7a001e22488b05231)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef USERLAND_FS_IO_REQUEST_INFO_H
6 #define USERLAND_FS_IO_REQUEST_INFO_H
7 
8 #include <SupportDefs.h>
9 
10 
11 namespace UserlandFS {
12 
13 struct IORequestInfo {
14 	off_t	offset;
15 	size_t	length;
16 	int32	id;
17 	bool	isWrite;
18 	bool	isVIP;
19 
20 	IORequestInfo(int32 id, bool isWrite, off_t offset, size_t length,
21 		bool isVIP)
22 		:
23 		offset(offset),
24 		length(length),
25 		id(id),
26 		isWrite(isWrite),
27 		isVIP(isVIP)
28 	{
29 	}
30 
31 	IORequestInfo(const IORequestInfo& other)
32 		:
33 		offset(other.offset),
34 		length(other.length),
35 		id(other.id),
36 		isWrite(other.isWrite),
37 		isVIP(other.isVIP)
38 	{
39 	}
40 };
41 
42 }	// namespace UserlandFS
43 
44 
45 using UserlandFS::IORequestInfo;
46 
47 
48 #endif	// USERLAND_FS_IO_REQUEST_INFO_H
49