mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
sculpt: expose unique name as 'Component' constant
This commit is contained in:
parent
3a99deef5a
commit
a351b0c164
@ -32,6 +32,7 @@ struct Sculpt::Component : Noncopyable
|
|||||||
Allocator &_alloc;
|
Allocator &_alloc;
|
||||||
|
|
||||||
/* defined at construction time */
|
/* defined at construction time */
|
||||||
|
Name const name;
|
||||||
Path const path;
|
Path const path;
|
||||||
Info const info;
|
Info const info;
|
||||||
|
|
||||||
@ -120,10 +121,10 @@ struct Sculpt::Component : Noncopyable
|
|||||||
virtual void trigger_pkg_download() = 0;
|
virtual void trigger_pkg_download() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
Component(Allocator &alloc, Path const &path, Info const &info,
|
Component(Allocator &alloc, Name const &name, Path const &path,
|
||||||
Affinity::Space const space)
|
Info const &info, Affinity::Space const space)
|
||||||
:
|
:
|
||||||
_alloc(alloc), path(path), info(info), affinity_space(space)
|
_alloc(alloc), name(name), path(path), info(info), affinity_space(space)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
~Component()
|
~Component()
|
||||||
|
@ -162,7 +162,7 @@ class Sculpt::Runtime_state : public Runtime_info
|
|||||||
:
|
:
|
||||||
name(name), launcher(), launched(false)
|
name(name), launcher(), launched(false)
|
||||||
{
|
{
|
||||||
construction.construct(alloc, pkg_path, info, space);
|
construction.construct(alloc, name, pkg_path, info, space);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gen_deploy_start_node(Xml_generator &xml, Runtime_state const &state) const
|
void gen_deploy_start_node(Xml_generator &xml, Runtime_state const &state) const
|
||||||
|
Loading…
Reference in New Issue
Block a user