xref: /haiku/src/add-ons/kernel/file_systems/nfs4/RPCCallbackReply.h (revision 579f1dbca962a2a03df54f69fdc6e9423f91f20e)
1 /*
2  * Copyright 2012 Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Paweł Dziepak, pdziepak@quarnos.org
7  */
8 #ifndef RPCCALLBACKREPLY_H
9 #define RPCCALLBACKREPLY_H
10 
11 
12 #include "RPCDefs.h"
13 #include "XDR.h"
14 
15 
16 namespace RPC {
17 
18 class CallbackReply {
19 public:
20 	static	CallbackReply*		Create(uint32 xid,
21 									AcceptStat rpcError = SUCCESS);
22 								~CallbackReply();
23 
24 	inline	XDR::WriteStream&	Stream();
25 
26 private:
27 								CallbackReply();
28 
29 			XDR::WriteStream	fStream;
30 };
31 
32 
33 inline XDR::WriteStream&
34 CallbackReply::Stream()
35 {
36 	return fStream;
37 }
38 
39 }		// namespace RPC
40 
41 
42 #endif	//	RPCCALLBACKREPLY_H
43