hw: IPC nodes provide protected accessors

ref #964
This commit is contained in:
Martin Stein 2013-11-28 00:44:54 +01:00 committed by Norman Feske
parent 16d48eaf1e
commit e35d7c979f

View File

@ -30,11 +30,7 @@ namespace Kernel
class Kernel::Ipc_node class Kernel::Ipc_node
{ {
private: protected:
class Message_buf;
typedef Genode::Fifo<Message_buf> Message_fifo;
enum State enum State
{ {
@ -45,6 +41,12 @@ class Kernel::Ipc_node
PREPARE_AND_AWAIT_REPLY = 5, PREPARE_AND_AWAIT_REPLY = 5,
}; };
private:
class Message_buf;
typedef Genode::Fifo<Message_buf> Message_fifo;
/** /**
* Describes the buffer for incoming or outgoing messages * Describes the buffer for incoming or outgoing messages
*/ */
@ -201,6 +203,16 @@ class Kernel::Ipc_node
*/ */
virtual void _await_ipc_failed() = 0; virtual void _await_ipc_failed() = 0;
protected:
/***************
** Accessors **
***************/
Ipc_node * outbuf_dst() { return _outbuf_dst; }
State state() { return _state; }
public: public:
/** /**