BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / kernel / file_systems / nfs4 / RPCCall.h
blobf1739bd4d1e20a9d0a6f9f3865c190a75b33a11d
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 RPCCALL_H
9 #define RPCCALL_H
12 #include "RPCAuth.h"
13 #include "XDR.h"
16 namespace RPC {
18 class Call {
19 public:
20 static Call* Create(uint32 proc, const Auth* creds,
21 const Auth* ver);
22 ~Call();
24 void SetXID(uint32 x);
26 inline XDR::WriteStream& Stream();
28 private:
29 Call();
31 XDR::Stream::Position fXIDPosition;
33 XDR::WriteStream fStream;
37 inline XDR::WriteStream&
38 Call::Stream()
40 return fStream;
43 } // namespace RPC
46 #endif // RPCCALL_H