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 16 namespace RPC { 17 18 class Call { 19 public: 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 28 private: 29 Call(); 30 31 XDR::Stream::Position fXIDPosition; 32 33 XDR::WriteStream fStream; 34 }; 35 36 37 inline XDR::WriteStream& 38 Call::Stream() 39 { 40 return fStream; 41 } 42 43 } // namespace RPC 44 45 46 #endif // RPCCALL_H 47