xref: /haiku/src/add-ons/kernel/file_systems/nfs4/RPCReply.cpp (revision da59bc46d9a6a09562dca3b916dce0383c97fa97)
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 
9 
10 #include "RPCReply.h"
11 
12 #include <util/kernel_cpp.h>
13 
14 
15 using namespace RPC;
16 
17 
18 Reply::Reply(void *buffer, int size)
19 	:
20 	fError(B_OK),
21 	fStream(buffer, size),
22 	fBuffer(buffer)
23 {
24 	fXID = fStream.GetUInt();
25 #if 0
26 	int32 type = fStream.GetInt();
27 	int32 state = fStream.GetInt();
28 	int32 auth = fStream.GetInt();
29 	fStream.GetOpaque(NULL);
30 #endif
31 }
32 
33 
34 Reply::~Reply()
35 {
36 	free(fBuffer);
37 }
38 
39