parent
e53ba5ee3e
commit
d2e246d916
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#include <log_session/client.h>
|
#include <log_session/client.h>
|
||||||
#include <base/connection.h>
|
#include <base/connection.h>
|
||||||
|
#include <base/session_label.h>
|
||||||
|
|
||||||
namespace Genode { struct Log_connection; }
|
namespace Genode { struct Log_connection; }
|
||||||
|
|
||||||
|
@ -25,9 +26,11 @@ struct Genode::Log_connection : Connection<Log_session>, Log_session_client
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* 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())
|
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
|
* \deprecated Use the constructor with 'Env &' as first
|
||||||
* argument instead
|
* 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())
|
Log_session_client(cap())
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user