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