xref: /haiku/src/add-ons/kernel/file_systems/userlandfs/private/Request.cpp (revision 2b76973fa2401f7a5edf68e6470f3d3210cbcff3)
1 // Request.cpp
2 
3 #include "Request.h"
4 
5 // Address
6 
7 // constructor
8 Address::Address()
9 	: fSize(0)
10 {
11 	fUnrelocated.area = -1;
12 	fUnrelocated.offset = 0;
13 }
14 
15 // SetTo
16 void
17 Address::SetTo(area_id area, int32 offset, int32 size)
18 {
19 	fUnrelocated.area = area;
20 	fUnrelocated.offset = offset;
21 	fSize = size;
22 }
23 
24 
25 // Request
26 
27 // constructor
28 Request::Request(uint32 type)
29 	: fType(type)
30 {
31 }
32 
33 // GetType
34 uint32
35 Request::GetType() const
36 {
37 	return fType;
38 }
39 
40 // Check
41 status_t
42 Request::Check() const
43 {
44 	return B_OK;
45 }
46 
47 // GetAddressInfos
48 status_t
49 Request::GetAddressInfos(AddressInfo* infos, int32* count)
50 {
51 	*count = 0;
52 	return B_OK;
53 }
54 
55