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 RPCCALL_H
9#define RPCCALL_H
10
11
12#include "RPCAuth.h"
13#include "XDR.h"
14
15
16namespace RPC {
17
18class Call {
19public:
20	static	Call*					Create(uint32 proc, const Auth* creds,
21										const Auth* ver);
22									~Call();
23
24			void					SetXID(uint32 x);
25
26	inline	XDR::WriteStream&		Stream();
27
28private:
29									Call();
30
31			XDR::Stream::Position	fXIDPosition;
32
33			XDR::WriteStream		fStream;
34};
35
36
37inline XDR::WriteStream&
38Call::Stream()
39{
40	return fStream;
41}
42
43}		// namespace RPC
44
45
46#endif	//	RPCCALL_H
47