mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 22:58:26 +00:00
Move repositories to 'repos/' subdirectory
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
This commit is contained in:
53
repos/os/include/file_system_session/rpc_object.h
Normal file
53
repos/os/include/file_system_session/rpc_object.h
Normal file
@ -0,0 +1,53 @@
|
||||
/*
|
||||
* \brief Server-side file-system session interface
|
||||
* \author Norman Feske
|
||||
* \date 2012-04-05
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2012-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__FILE_SYSTEM_SESSION__SERVER_H_
|
||||
#define _INCLUDE__FILE_SYSTEM_SESSION__SERVER_H_
|
||||
|
||||
#include <file_system_session/file_system_session.h>
|
||||
#include <packet_stream_tx/rpc_object.h>
|
||||
#include <base/rpc_server.h>
|
||||
|
||||
namespace File_system {
|
||||
|
||||
class Session_rpc_object : public Genode::Rpc_object<Session, Session_rpc_object>
|
||||
{
|
||||
protected:
|
||||
|
||||
Packet_stream_tx::Rpc_object<Tx> _tx;
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* \param tx_ds dataspace used as communication buffer
|
||||
* for the tx packet stream
|
||||
* \param ep entry point used for packet-stream channel
|
||||
*/
|
||||
Session_rpc_object(Dataspace_capability tx_ds, Rpc_entrypoint &ep)
|
||||
: _tx(tx_ds, ep) { }
|
||||
|
||||
/**
|
||||
* Return capability to packet-stream channel
|
||||
*
|
||||
* This function is called by the client via an RPC call at session
|
||||
* construction time.
|
||||
*/
|
||||
Capability<Tx> _tx_cap() { return _tx.cap(); }
|
||||
|
||||
Tx::Sink *tx_sink() { return _tx.sink(); }
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* _INCLUDE__FILE_SYSTEM_SESSION__SERVER_H_ */
|
Reference in New Issue
Block a user