genode/base/include/log_session/log_session.h

50 lines
1.0 KiB
C
Raw Normal View History

2011-12-22 15:19:25 +00:00
/*
* \brief Log text output session interface
* \author Norman Feske
* \date 2006-09-15
*/
/*
2013-01-10 20:44:47 +00:00
* Copyright (C) 2006-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__LOG_SESSION__LOG_SESSION_H_
#define _INCLUDE__LOG_SESSION__LOG_SESSION_H_
#include <base/capability.h>
#include <base/stdint.h>
#include <base/rpc_args.h>
#include <session/session.h>
namespace Genode {
struct Log_session : Session
{
static const char *service_name() { return "LOG"; }
virtual ~Log_session() { }
typedef Rpc_in_buffer<256> String;
/**
* Output null-terminated string
*
* \return number of written characters
*/
virtual size_t write(String const &string) = 0;
/*********************
** RPC declaration **
*********************/
GENODE_RPC(Rpc_write, size_t, write, String const &);
GENODE_RPC_INTERFACE(Rpc_write);
};
}
#endif /* _INCLUDE__LOG_SESSION__LOG_SESSION_H_ */