mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
parent
e53ba5ee3e
commit
d2e246d916
@ -16,6 +16,7 @@
|
||||
|
||||
#include <log_session/client.h>
|
||||
#include <base/connection.h>
|
||||
#include <base/session_label.h>
|
||||
|
||||
namespace Genode { struct Log_connection; }
|
||||
|
||||
@ -25,9 +26,11 @@ struct Genode::Log_connection : Connection<Log_session>, Log_session_client
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
Log_connection(Env &env)
|
||||
Log_connection(Env &env, Session_label label = Session_label())
|
||||
:
|
||||
Connection<Log_session>(env, session(env.parent(), "ram_quota=8K")),
|
||||
Connection<Log_session>(env, session(env.parent(),
|
||||
"ram_quota=8K, label=\"%s\"",
|
||||
label.string())),
|
||||
Log_session_client(cap())
|
||||
{ }
|
||||
|
||||
@ -38,9 +41,10 @@ struct Genode::Log_connection : Connection<Log_session>, Log_session_client
|
||||
* \deprecated Use the constructor with 'Env &' as first
|
||||
* argument instead
|
||||
*/
|
||||
Log_connection()
|
||||
Log_connection(Session_label label = Session_label())
|
||||
:
|
||||
Connection<Log_session>(session("ram_quota=8K")),
|
||||
Connection<Log_session>(session("ram_quota=8K, label=\"%s\"",
|
||||
label.string())),
|
||||
Log_session_client(cap())
|
||||
{ }
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user