BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / kernel / file_systems / nfs4 / RPCReply.h
blob50a200b3b811e75334862187aa7e9330f4f283b3
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 RPCREPLY_H
9 #define RPCREPLY_H
12 #include "XDR.h"
15 namespace RPC {
17 class Reply {
18 public:
19 Reply(void* buffer, int size);
20 ~Reply();
22 inline uint32 GetXID();
24 inline status_t Error();
25 inline XDR::ReadStream& Stream();
27 private:
28 uint32 fXID;
30 status_t fError;
32 XDR::ReadStream fStream;
33 void* fBuffer;
36 inline uint32
37 Reply::GetXID()
39 return fXID;
43 inline status_t
44 Reply::Error()
46 return fError;
50 inline XDR::ReadStream&
51 Reply::Stream()
53 return fStream;
56 } // namespace RPC
59 #endif // RPCREPLY_H