BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / kernel / file_systems / nfs4 / RPCCallbackRequest.h
blob19e2e006c52bdbb8b4453768ddaf2cf4134f981f
1 /*
2 * Copyright 2012 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Paweł Dziepak, pdziepak@quarnos.org
7 */
8 #ifndef RPCCALLBACKREQUEST_H
9 #define RPCCALLBACKREQUEST_H
12 #include "RPCDefs.h"
13 #include "XDR.h"
16 namespace RPC {
18 class CallbackRequest {
19 public:
20 CallbackRequest(void* buffer, int size);
21 ~CallbackRequest();
23 inline uint32 XID();
24 inline uint32 ID();
26 inline uint32 Procedure();
28 inline status_t Error();
29 inline AcceptStat RPCError();
31 inline XDR::ReadStream& Stream();
33 private:
34 uint32 fXID;
35 uint32 fID;
37 uint32 fProcedure;
39 status_t fError;
40 AcceptStat fRPCError;
42 XDR::ReadStream fStream;
43 void* fBuffer;
47 inline uint32
48 CallbackRequest::XID()
50 return fXID;
54 inline uint32
55 CallbackRequest::ID()
57 return fID;
61 inline uint32
62 CallbackRequest::Procedure()
64 return fProcedure;
68 inline status_t
69 CallbackRequest::Error()
71 return fError;
75 inline AcceptStat
76 CallbackRequest::RPCError()
78 return fRPCError;
82 inline XDR::ReadStream&
83 CallbackRequest::Stream()
85 return fStream;
89 } // namespace RPC
92 #endif // RPCCALLBACKREQUEST_H