xref: /haiku/src/add-ons/kernel/file_systems/netfs/shared/Requests.cpp (revision 5a1d355fdf2747f80f8c46e2539f844a0b813346)
1 // Requests.cpp
2 
3 #include "Requests.h"
4 
5 // constructor
RequestVisitor()6 RequestVisitor::RequestVisitor()
7 {
8 }
9 
10 // destructor
~RequestVisitor()11 RequestVisitor::~RequestVisitor()
12 {
13 }
14 
15 // VisitConnectionBrokenRequest
16 status_t
VisitConnectionBrokenRequest(ConnectionBrokenRequest * request)17 RequestVisitor::VisitConnectionBrokenRequest(ConnectionBrokenRequest* request)
18 {
19 	return VisitAny(request);
20 }
21 
22 // VisitInitConnectionRequest
23 status_t
VisitInitConnectionRequest(InitConnectionRequest * request)24 RequestVisitor::VisitInitConnectionRequest(InitConnectionRequest* request)
25 {
26 	return VisitAny(request);
27 }
28 
29 // VisitInitConnectionReply
30 status_t
VisitInitConnectionReply(InitConnectionReply * request)31 RequestVisitor::VisitInitConnectionReply(InitConnectionReply* request)
32 {
33 	return VisitAny(request);
34 }
35 
36 // VisitMountRequest
37 status_t
VisitMountRequest(MountRequest * request)38 RequestVisitor::VisitMountRequest(MountRequest* request)
39 {
40 	return VisitAny(request);
41 }
42 
43 // VisitMountReply
44 status_t
VisitMountReply(MountReply * request)45 RequestVisitor::VisitMountReply(MountReply* request)
46 {
47 	return VisitAny(request);
48 }
49 
50 // VisitUnmountRequest
51 status_t
VisitUnmountRequest(UnmountRequest * request)52 RequestVisitor::VisitUnmountRequest(UnmountRequest* request)
53 {
54 	return VisitAny(request);
55 }
56 
57 // VisitReadVNodeRequest
58 status_t
VisitReadVNodeRequest(ReadVNodeRequest * request)59 RequestVisitor::VisitReadVNodeRequest(ReadVNodeRequest* request)
60 {
61 	return VisitAny(request);
62 }
63 
64 // VisitReadVNodeReply
65 status_t
VisitReadVNodeReply(ReadVNodeReply * request)66 RequestVisitor::VisitReadVNodeReply(ReadVNodeReply* request)
67 {
68 	return VisitAny(request);
69 }
70 
71 // VisitWriteStatRequest
72 status_t
VisitWriteStatRequest(WriteStatRequest * request)73 RequestVisitor::VisitWriteStatRequest(WriteStatRequest* request)
74 {
75 	return VisitAny(request);
76 }
77 
78 // VisitWriteStatReply
79 status_t
VisitWriteStatReply(WriteStatReply * request)80 RequestVisitor::VisitWriteStatReply(WriteStatReply* request)
81 {
82 	return VisitAny(request);
83 }
84 
85 // VisitCreateFileRequest
86 status_t
VisitCreateFileRequest(CreateFileRequest * request)87 RequestVisitor::VisitCreateFileRequest(CreateFileRequest* request)
88 {
89 	return VisitAny(request);
90 }
91 
92 // VisitCreateFileReply
93 status_t
VisitCreateFileReply(CreateFileReply * request)94 RequestVisitor::VisitCreateFileReply(CreateFileReply* request)
95 {
96 	return VisitAny(request);
97 }
98 
99 // VisitOpenRequest
100 status_t
VisitOpenRequest(OpenRequest * request)101 RequestVisitor::VisitOpenRequest(OpenRequest* request)
102 {
103 	return VisitAny(request);
104 }
105 
106 // VisitOpenReply
107 status_t
VisitOpenReply(OpenReply * request)108 RequestVisitor::VisitOpenReply(OpenReply* request)
109 {
110 	return VisitAny(request);
111 }
112 
113 // VisitCloseRequest
114 status_t
VisitCloseRequest(CloseRequest * request)115 RequestVisitor::VisitCloseRequest(CloseRequest* request)
116 {
117 	return VisitAny(request);
118 }
119 
120 // VisitCloseReply
121 status_t
VisitCloseReply(CloseReply * request)122 RequestVisitor::VisitCloseReply(CloseReply* request)
123 {
124 	return VisitAny(request);
125 }
126 
127 // VisitReadRequest
128 status_t
VisitReadRequest(ReadRequest * request)129 RequestVisitor::VisitReadRequest(ReadRequest* request)
130 {
131 	return VisitAny(request);
132 }
133 
134 // VisitReadReply
135 status_t
VisitReadReply(ReadReply * request)136 RequestVisitor::VisitReadReply(ReadReply* request)
137 {
138 	return VisitAny(request);
139 }
140 
141 // VisitWriteRequest
142 status_t
VisitWriteRequest(WriteRequest * request)143 RequestVisitor::VisitWriteRequest(WriteRequest* request)
144 {
145 	return VisitAny(request);
146 }
147 
148 // VisitWriteReply
149 status_t
VisitWriteReply(WriteReply * request)150 RequestVisitor::VisitWriteReply(WriteReply* request)
151 {
152 	return VisitAny(request);
153 }
154 
155 // VisitCreateLinkRequest
156 status_t
VisitCreateLinkRequest(CreateLinkRequest * request)157 RequestVisitor::VisitCreateLinkRequest(CreateLinkRequest* request)
158 {
159 	return VisitAny(request);
160 }
161 
162 // VisitCreateLinkReply
163 status_t
VisitCreateLinkReply(CreateLinkReply * request)164 RequestVisitor::VisitCreateLinkReply(CreateLinkReply* request)
165 {
166 	return VisitAny(request);
167 }
168 
169 // VisitUnlinkRequest
170 status_t
VisitUnlinkRequest(UnlinkRequest * request)171 RequestVisitor::VisitUnlinkRequest(UnlinkRequest* request)
172 {
173 	return VisitAny(request);
174 }
175 
176 // VisitUnlinkReply
177 status_t
VisitUnlinkReply(UnlinkReply * request)178 RequestVisitor::VisitUnlinkReply(UnlinkReply* request)
179 {
180 	return VisitAny(request);
181 }
182 
183 // VisitCreateSymlinkRequest
184 status_t
VisitCreateSymlinkRequest(CreateSymlinkRequest * request)185 RequestVisitor::VisitCreateSymlinkRequest(CreateSymlinkRequest* request)
186 {
187 	return VisitAny(request);
188 }
189 
190 // VisitCreateSymlinkReply
191 status_t
VisitCreateSymlinkReply(CreateSymlinkReply * request)192 RequestVisitor::VisitCreateSymlinkReply(CreateSymlinkReply* request)
193 {
194 	return VisitAny(request);
195 }
196 
197 // VisitReadLinkRequest
198 status_t
VisitReadLinkRequest(ReadLinkRequest * request)199 RequestVisitor::VisitReadLinkRequest(ReadLinkRequest* request)
200 {
201 	return VisitAny(request);
202 }
203 
204 // VisitReadLinkReply
205 status_t
VisitReadLinkReply(ReadLinkReply * request)206 RequestVisitor::VisitReadLinkReply(ReadLinkReply* request)
207 {
208 	return VisitAny(request);
209 }
210 
211 // VisitRenameRequest
212 status_t
VisitRenameRequest(RenameRequest * request)213 RequestVisitor::VisitRenameRequest(RenameRequest* request)
214 {
215 	return VisitAny(request);
216 }
217 
218 // VisitRenameReply
219 status_t
VisitRenameReply(RenameReply * request)220 RequestVisitor::VisitRenameReply(RenameReply* request)
221 {
222 	return VisitAny(request);
223 }
224 
225 // VisitMakeDirRequest
226 status_t
VisitMakeDirRequest(MakeDirRequest * request)227 RequestVisitor::VisitMakeDirRequest(MakeDirRequest* request)
228 {
229 	return VisitAny(request);
230 }
231 
232 // VisitMakeDirReply
233 status_t
VisitMakeDirReply(MakeDirReply * request)234 RequestVisitor::VisitMakeDirReply(MakeDirReply* request)
235 {
236 	return VisitAny(request);
237 }
238 
239 // VisitRemoveDirRequest
240 status_t
VisitRemoveDirRequest(RemoveDirRequest * request)241 RequestVisitor::VisitRemoveDirRequest(RemoveDirRequest* request)
242 {
243 	return VisitAny(request);
244 }
245 
246 // VisitRemoveDirReply
247 status_t
VisitRemoveDirReply(RemoveDirReply * request)248 RequestVisitor::VisitRemoveDirReply(RemoveDirReply* request)
249 {
250 	return VisitAny(request);
251 }
252 
253 // VisitOpenDirRequest
254 status_t
VisitOpenDirRequest(OpenDirRequest * request)255 RequestVisitor::VisitOpenDirRequest(OpenDirRequest* request)
256 {
257 	return VisitAny(request);
258 }
259 
260 // VisitOpenDirReply
261 status_t
VisitOpenDirReply(OpenDirReply * request)262 RequestVisitor::VisitOpenDirReply(OpenDirReply* request)
263 {
264 	return VisitAny(request);
265 }
266 
267 // VisitReadDirRequest
268 status_t
VisitReadDirRequest(ReadDirRequest * request)269 RequestVisitor::VisitReadDirRequest(ReadDirRequest* request)
270 {
271 	return VisitAny(request);
272 }
273 
274 // VisitReadDirReply
275 status_t
VisitReadDirReply(ReadDirReply * request)276 RequestVisitor::VisitReadDirReply(ReadDirReply* request)
277 {
278 	return VisitAny(request);
279 }
280 
281 // VisitWalkRequest
282 status_t
VisitWalkRequest(WalkRequest * request)283 RequestVisitor::VisitWalkRequest(WalkRequest* request)
284 {
285 	return VisitAny(request);
286 }
287 
288 // VisitWalkReply
289 status_t
VisitWalkReply(WalkReply * request)290 RequestVisitor::VisitWalkReply(WalkReply* request)
291 {
292 	return VisitAny(request);
293 }
294 
295 // VisitMultiWalkRequest
296 status_t
VisitMultiWalkRequest(MultiWalkRequest * request)297 RequestVisitor::VisitMultiWalkRequest(MultiWalkRequest* request)
298 {
299 	return VisitAny(request);
300 }
301 
302 // VisitMultiWalkReply
303 status_t
VisitMultiWalkReply(MultiWalkReply * request)304 RequestVisitor::VisitMultiWalkReply(MultiWalkReply* request)
305 {
306 	return VisitAny(request);
307 }
308 
309 // VisitOpenAttrDirRequest
310 status_t
VisitOpenAttrDirRequest(OpenAttrDirRequest * request)311 RequestVisitor::VisitOpenAttrDirRequest(OpenAttrDirRequest* request)
312 {
313 	return VisitAny(request);
314 }
315 
316 // VisitOpenAttrDirReply
317 status_t
VisitOpenAttrDirReply(OpenAttrDirReply * request)318 RequestVisitor::VisitOpenAttrDirReply(OpenAttrDirReply* request)
319 {
320 	return VisitAny(request);
321 }
322 
323 // VisitReadAttrDirRequest
324 status_t
VisitReadAttrDirRequest(ReadAttrDirRequest * request)325 RequestVisitor::VisitReadAttrDirRequest(ReadAttrDirRequest* request)
326 {
327 	return VisitAny(request);
328 }
329 
330 // VisitReadAttrDirReply
331 status_t
VisitReadAttrDirReply(ReadAttrDirReply * request)332 RequestVisitor::VisitReadAttrDirReply(ReadAttrDirReply* request)
333 {
334 	return VisitAny(request);
335 }
336 
337 // VisitReadAttrRequest
338 status_t
VisitReadAttrRequest(ReadAttrRequest * request)339 RequestVisitor::VisitReadAttrRequest(ReadAttrRequest* request)
340 {
341 	return VisitAny(request);
342 }
343 
344 // VisitReadAttrReply
345 status_t
VisitReadAttrReply(ReadAttrReply * request)346 RequestVisitor::VisitReadAttrReply(ReadAttrReply* request)
347 {
348 	return VisitAny(request);
349 }
350 
351 // VisitWriteAttrRequest
352 status_t
VisitWriteAttrRequest(WriteAttrRequest * request)353 RequestVisitor::VisitWriteAttrRequest(WriteAttrRequest* request)
354 {
355 	return VisitAny(request);
356 }
357 
358 // VisitWriteAttrReply
359 status_t
VisitWriteAttrReply(WriteAttrReply * request)360 RequestVisitor::VisitWriteAttrReply(WriteAttrReply* request)
361 {
362 	return VisitAny(request);
363 }
364 
365 // VisitRemoveAttrRequest
366 status_t
VisitRemoveAttrRequest(RemoveAttrRequest * request)367 RequestVisitor::VisitRemoveAttrRequest(RemoveAttrRequest* request)
368 {
369 	return VisitAny(request);
370 }
371 
372 // VisitRemoveAttrReply
373 status_t
VisitRemoveAttrReply(RemoveAttrReply * request)374 RequestVisitor::VisitRemoveAttrReply(RemoveAttrReply* request)
375 {
376 	return VisitAny(request);
377 }
378 
379 // VisitRenameAttrRequest
380 status_t
VisitRenameAttrRequest(RenameAttrRequest * request)381 RequestVisitor::VisitRenameAttrRequest(RenameAttrRequest* request)
382 {
383 	return VisitAny(request);
384 }
385 
386 // VisitRenameAttrReply
387 status_t
VisitRenameAttrReply(RenameAttrReply * request)388 RequestVisitor::VisitRenameAttrReply(RenameAttrReply* request)
389 {
390 	return VisitAny(request);
391 }
392 
393 // VisitStatAttrRequest
394 status_t
VisitStatAttrRequest(StatAttrRequest * request)395 RequestVisitor::VisitStatAttrRequest(StatAttrRequest* request)
396 {
397 	return VisitAny(request);
398 }
399 
400 // VisitStatAttrReply
401 status_t
VisitStatAttrReply(StatAttrReply * request)402 RequestVisitor::VisitStatAttrReply(StatAttrReply* request)
403 {
404 	return VisitAny(request);
405 }
406 
407 // VisitOpenQueryRequest
408 status_t
VisitOpenQueryRequest(OpenQueryRequest * request)409 RequestVisitor::VisitOpenQueryRequest(OpenQueryRequest* request)
410 {
411 	return VisitAny(request);
412 }
413 
414 // VisitOpenQueryReply
415 status_t
VisitOpenQueryReply(OpenQueryReply * request)416 RequestVisitor::VisitOpenQueryReply(OpenQueryReply* request)
417 {
418 	return VisitAny(request);
419 }
420 
421 // VisitReadQueryRequest
422 status_t
VisitReadQueryRequest(ReadQueryRequest * request)423 RequestVisitor::VisitReadQueryRequest(ReadQueryRequest* request)
424 {
425 	return VisitAny(request);
426 }
427 
428 // VisitReadQueryReply
429 status_t
VisitReadQueryReply(ReadQueryReply * request)430 RequestVisitor::VisitReadQueryReply(ReadQueryReply* request)
431 {
432 	return VisitAny(request);
433 }
434 
435 // VisitNodeMonitoringRequest
436 status_t
VisitNodeMonitoringRequest(NodeMonitoringRequest * request)437 RequestVisitor::VisitNodeMonitoringRequest(NodeMonitoringRequest* request)
438 {
439 	return VisitAny(request);
440 }
441 
442 // VisitEntryCreatedRequest
443 status_t
VisitEntryCreatedRequest(EntryCreatedRequest * request)444 RequestVisitor::VisitEntryCreatedRequest(EntryCreatedRequest* request)
445 {
446 	return VisitNodeMonitoringRequest(request);
447 }
448 
449 // VisitEntryRemovedRequest
450 status_t
VisitEntryRemovedRequest(EntryRemovedRequest * request)451 RequestVisitor::VisitEntryRemovedRequest(EntryRemovedRequest* request)
452 {
453 	return VisitNodeMonitoringRequest(request);
454 }
455 
456 // VisitEntryMovedRequest
457 status_t
VisitEntryMovedRequest(EntryMovedRequest * request)458 RequestVisitor::VisitEntryMovedRequest(EntryMovedRequest* request)
459 {
460 	return VisitNodeMonitoringRequest(request);
461 }
462 
463 // VisitStatChangedRequest
464 status_t
VisitStatChangedRequest(StatChangedRequest * request)465 RequestVisitor::VisitStatChangedRequest(StatChangedRequest* request)
466 {
467 	return VisitNodeMonitoringRequest(request);
468 }
469 
470 // VisitAttributeChangedRequest
471 status_t
VisitAttributeChangedRequest(AttributeChangedRequest * request)472 RequestVisitor::VisitAttributeChangedRequest(AttributeChangedRequest* request)
473 {
474 	return VisitNodeMonitoringRequest(request);
475 }
476 
477 // VisitServerInfoRequest
478 status_t
VisitServerInfoRequest(ServerInfoRequest * request)479 RequestVisitor::VisitServerInfoRequest(ServerInfoRequest* request)
480 {
481 	return VisitAny(request);
482 }
483 
484 // VisitAny
485 status_t
VisitAny(Request * request)486 RequestVisitor::VisitAny(Request* request)
487 {
488 	return B_OK;
489 }
490 
491