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 RPCAUTH_H 9 #define RPCAUTH_H 10 11 12 #include "XDR.h" 13 14 15 namespace RPC { 16 17 class Auth { 18 public: 19 inline const XDR::WriteStream& Stream() const; 20 21 static const Auth* CreateNone(); 22 static const Auth* CreateSys(); 23 24 private: 25 Auth(); 26 27 XDR::WriteStream fStream; 28 }; 29 30 31 inline const XDR::WriteStream& 32 Auth::Stream() const 33 { 34 return fStream; 35 } 36 37 } // namespace RPC 38 39 40 #endif // RPCAUTH_H 41 42