2011-12-22 15:19:25 +00:00
|
|
|
/*
|
|
|
|
* \brief Session
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2011-05-15
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 20:44:47 +00:00
|
|
|
* Copyright (C) 2011-2013 Genode Labs GmbH
|
2011-12-22 15:19:25 +00:00
|
|
|
*
|
|
|
|
* 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__SESSION_H_
|
|
|
|
#define _INCLUDE__SESSION_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Each session interface declares an RPC interface and, therefore, relies on
|
|
|
|
* the RPC framework. By including 'base/rpc.h' here, we relieve the interfaces
|
|
|
|
* from including 'base/rpc.h' in addition to 'session/session.h'.
|
|
|
|
*/
|
|
|
|
#include <base/rpc.h>
|
|
|
|
|
2015-03-04 20:12:14 +00:00
|
|
|
namespace Genode { class Session; }
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
|
2015-03-04 20:12:14 +00:00
|
|
|
/**
|
|
|
|
* Base class of session interfaces
|
|
|
|
*/
|
2015-03-20 16:50:41 +00:00
|
|
|
class Genode::Session
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Each session interface must implement the class function 'service_name'
|
|
|
|
* ! static const char *service_name();
|
|
|
|
* This function returns the name of the service provided via the session
|
|
|
|
* interface.
|
|
|
|
*/
|
|
|
|
};
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
#endif /* _INCLUDE__SESSION_H_ */
|