/* * \brief Connection to CAP service * \author Norman Feske * \date 2008-08-22 * * \deprecated * * This header is scheduled for removal. It exists for API compatiblity only. */ /* * Copyright (C) 2008-2017 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU Affero General Public License version 3. */ #ifndef _INCLUDE__CAP_SESSION__CONNECTION_H_ #define _INCLUDE__CAP_SESSION__CONNECTION_H_ #include #include #include namespace Genode { struct Cap_connection; } #ifndef INCLUDED_BY_ENTRYPOINT_CC #warning cap_session.h is deprecated #endif /* * There are no CAP connections anymore. The only situation where CAP * connections were created was inside old-fashioned servers that used * to create an 'Rpc_entrypoint' manually. The 'Rpc_entrypoint' requires * a CAP session as constructor argument. We accommodate this use case * by allocating RPC capabilities from the server's protection domain. * * Modern components no longer create 'Rpc_entrypoint' objects directly * but instead use the new 'Entrypoint' interface. */ struct Genode::Cap_connection : Pd_session_client { Cap_connection() : Pd_session_client(env_deprecated()->pd_session_cap()) { } } __attribute__((deprecated)); #endif /* _INCLUDE__CAP_SESSION__CONNECTION_H_ */