mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 15:56:41 +00:00
xml_generator: add attribute String<N> method
Make it possible to directly pass on a Genode::String<N> object instead of using Genode::String<N>.string() by hand. Fixes #1783.
This commit is contained in:
parent
59d2a83f30
commit
e13971fcf0
@ -312,6 +312,12 @@ class Genode::Xml_generator
|
||||
_curr_node->insert_attribute(name, str);
|
||||
}
|
||||
|
||||
template <size_t N>
|
||||
void attribute(char const *name, String<N> const &str)
|
||||
{
|
||||
_curr_node->insert_attribute(name, str.string());
|
||||
}
|
||||
|
||||
void attribute(char const *name, long value)
|
||||
{
|
||||
char buf[64];
|
||||
|
Loading…
Reference in New Issue
Block a user