mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
62b1c55399
This patch integrates the functionality of the former CAP session into the PD session and unifies the approch of supplementing the generic PD session with kernel-specific functionality. The latter is achieved by the new 'Native_pd' interface. The kernel-specific interface can be obtained via the Pd_session::native_pd accessor function. The kernel-specific interfaces are named Nova_native_pd, Foc_native_pd, and Linux_native_pd. The latter change allowed for to deduplication of the pd_session_component code among the various base platforms. To retain API compatibility, we keep the 'Cap_session' and 'Cap_connection' around. But those classes have become mere wrappers around the PD session interface. Issue #1841
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
/*
|
|
* \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-2013 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__CAP_SESSION__CONNECTION_H_
|
|
#define _INCLUDE__CAP_SESSION__CONNECTION_H_
|
|
|
|
#include <cap_session/cap_session.h>
|
|
#include <pd_session/client.h>
|
|
#include <base/env.h>
|
|
|
|
namespace Genode { struct Cap_connection; }
|
|
|
|
|
|
/*
|
|
* 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()->pd_session_cap()) { }
|
|
};
|
|
|
|
#endif /* _INCLUDE__CAP_SESSION__CONNECTION_H_ */
|