genode/repos/hello_tutorial/include/hello_session/hello_session.h
Norman Feske c1b981ede4 Annotate session interfaces with CAP_QUOTA
The new 'CAP_QUOTA' enum value denotes the capability quota to be
transferred from the client to the server at session-creation time.

Issue #2398
2017-05-31 13:16:04 +02:00

44 lines
950 B
C++

/*
* \brief Interface definition of the Hello service
* \author Björn Döbel
* \date 2008-03-20
*/
/*
* 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__HELLO_SESSION__HELLO_SESSION_H_
#define _INCLUDE__HELLO_SESSION__HELLO_SESSION_H_
#include <session/session.h>
#include <base/rpc.h>
namespace Hello { struct Session; }
struct Hello::Session : Genode::Session
{
static const char *service_name() { return "Hello"; }
enum { CAP_QUOTA = 2 };
virtual void say_hello() = 0;
virtual int add(int a, int b) = 0;
/*******************
** RPC interface **
*******************/
GENODE_RPC(Rpc_say_hello, void, say_hello);
GENODE_RPC(Rpc_add, int, add, int, int);
GENODE_RPC_INTERFACE(Rpc_say_hello, Rpc_add);
};
#endif /* _INCLUDE__HELLO_SESSION__HELLO_SESSION_H_ */