mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-03 12:34:12 +00:00
nitpicker: Add label arg to connection constructor
This commit is contained in:
parent
26fcea44b2
commit
0d82070b82
@ -34,12 +34,15 @@ class Nitpicker::Connection : public Genode::Connection<Session>,
|
|||||||
/**
|
/**
|
||||||
* Create session and return typed session capability
|
* Create session and return typed session capability
|
||||||
*/
|
*/
|
||||||
Session_capability _connect(bool stay_top)
|
Session_capability _connect(bool stay_top, char const *label)
|
||||||
{
|
{
|
||||||
enum { ARGBUF_SIZE = 128 };
|
enum { ARGBUF_SIZE = 128 };
|
||||||
char argbuf[ARGBUF_SIZE];
|
char argbuf[ARGBUF_SIZE];
|
||||||
argbuf[0] = 0;
|
argbuf[0] = 0;
|
||||||
|
|
||||||
|
if (Genode::strlen(label) > 0)
|
||||||
|
Genode::snprintf(argbuf, sizeof(argbuf), "label=\"%s\"", label);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Declare ram-quota donation
|
* Declare ram-quota donation
|
||||||
*/
|
*/
|
||||||
@ -58,10 +61,10 @@ class Nitpicker::Connection : public Genode::Connection<Session>,
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*/
|
*/
|
||||||
Connection(bool stay_top = false)
|
Connection(bool stay_top = false, char const *label = "")
|
||||||
:
|
:
|
||||||
/* establish nitpicker session */
|
/* establish nitpicker session */
|
||||||
Genode::Connection<Session>(_connect(stay_top)),
|
Genode::Connection<Session>(_connect(stay_top, label)),
|
||||||
Session_client(cap()),
|
Session_client(cap()),
|
||||||
|
|
||||||
/* request frame-buffer and input sub sessions */
|
/* request frame-buffer and input sub sessions */
|
||||||
|
Loading…
Reference in New Issue
Block a user