mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 07:08:18 +00:00
@ -99,7 +99,7 @@ struct Ttf_font::Glyph_buffer
|
||||
|
||||
Allocator &alloc;
|
||||
|
||||
typedef Glyph_painter::Glyph::Opacity Opacity;
|
||||
using Opacity = Glyph_painter::Glyph::Opacity;
|
||||
|
||||
/**
|
||||
* Maximum number of opacity values that fit in the buffer
|
||||
|
@ -87,7 +87,7 @@ struct Vfs_gpu::File_system : Single_file_system
|
||||
|
||||
Vfs::Env &_env;
|
||||
|
||||
typedef String<32> Config;
|
||||
using Config = String<32>;
|
||||
|
||||
Id_space<Gpu_vfs_handle> _handle_space { };
|
||||
Id_space<Gpu_vfs_handle>::Id _last_id { .value = ~0ul };
|
||||
|
@ -20,22 +20,23 @@
|
||||
|
||||
namespace Vfs_pipe {
|
||||
using namespace Vfs;
|
||||
typedef Vfs::Directory_service::Open_result Open_result;
|
||||
typedef Vfs::File_io_service::Write_result Write_result;
|
||||
typedef Vfs::File_io_service::Read_result Read_result;
|
||||
typedef Genode::Path<Vfs::MAX_PATH_LEN> Path;
|
||||
using Open_result = Vfs::Directory_service::Open_result;
|
||||
using Write_result = Vfs::File_io_service::Write_result;
|
||||
using Read_result = Vfs::File_io_service::Read_result;
|
||||
using Path = Genode::Path<Vfs::MAX_PATH_LEN>;
|
||||
|
||||
enum { PIPE_BUF_SIZE = 8192U };
|
||||
typedef Genode::Ring_buffer<unsigned char, PIPE_BUF_SIZE+1> Pipe_buffer;
|
||||
using Pipe_buffer = Genode::Ring_buffer<unsigned char, PIPE_BUF_SIZE+1>;
|
||||
|
||||
struct Pipe_handle;
|
||||
typedef Genode::Fifo_element<Pipe_handle> Handle_element;
|
||||
typedef Genode::Fifo<Handle_element> Handle_fifo;
|
||||
typedef Genode::Registry<Pipe_handle>::Element Pipe_handle_registry_element;
|
||||
typedef Genode::Registry<Pipe_handle> Pipe_handle_registry;
|
||||
using Handle_element = Genode::Fifo_element<Pipe_handle>;
|
||||
using Handle_fifo = Genode::Fifo<Handle_element>;
|
||||
|
||||
using Pipe_handle_registry_element = Genode::Registry<Pipe_handle>::Element;
|
||||
using Pipe_handle_registry = Genode::Registry<Pipe_handle>;
|
||||
|
||||
struct Pipe;
|
||||
typedef Genode::Id_space<Pipe> Pipe_space;
|
||||
using Pipe_space = Genode::Id_space<Pipe>;
|
||||
|
||||
struct New_pipe_handle;
|
||||
|
||||
@ -104,7 +105,7 @@ struct Vfs_pipe::Pipe
|
||||
|
||||
~Pipe() = default;
|
||||
|
||||
typedef Genode::String<8> Name;
|
||||
using Name = Genode::String<8>;
|
||||
Name name() const
|
||||
{
|
||||
return Name(space_elem.id().value);
|
||||
|
@ -94,8 +94,7 @@ class Vfs_trace::Trace_buffer_file_system : public Single_file_system
|
||||
size_t _stat_size { 0 };
|
||||
Trace_entries _entries { _env };
|
||||
|
||||
|
||||
typedef String<32> Config;
|
||||
using Config = String<32>;
|
||||
|
||||
static Config _config()
|
||||
{
|
||||
@ -291,7 +290,7 @@ class Vfs_trace::Subject : private Subject_factory,
|
||||
{
|
||||
private:
|
||||
|
||||
typedef String<200> Config;
|
||||
using Config = String<200>;
|
||||
|
||||
Io::Watch_handler<Subject> _enable_handler {
|
||||
_enabled_fs, "/enable",
|
||||
@ -439,7 +438,7 @@ class Vfs_trace::File_system : private Local_factory,
|
||||
{
|
||||
private:
|
||||
|
||||
typedef String<512*1024> Config;
|
||||
using Config = String<512*1024>;
|
||||
|
||||
static char const *_config(Vfs::Env &vfs_env, Trace_directory &directory)
|
||||
{
|
||||
|
@ -330,7 +330,7 @@ class Vfs_tresor_crypto::Key_file_system : private Key_local_factory,
|
||||
|
||||
uint32_t _key_id;
|
||||
|
||||
typedef String<128> Config;
|
||||
using Config = String<128>;
|
||||
|
||||
static Config _config(uint32_t key_id)
|
||||
{
|
||||
@ -1096,7 +1096,7 @@ class Vfs_tresor_crypto::File_system : private Local_factory,
|
||||
{
|
||||
private:
|
||||
|
||||
typedef String<128> Config;
|
||||
using Config = String<128>;
|
||||
|
||||
static Config _config(Xml_node node)
|
||||
{
|
||||
|
@ -27,8 +27,8 @@ namespace Vfs {
|
||||
|
||||
class Glyphs_file_system;
|
||||
|
||||
typedef Text_painter::Font Font;
|
||||
typedef Vfs_font::Glyph_header Glyph_header;
|
||||
using Font = Text_painter::Font;
|
||||
using Glyph_header = Vfs_font::Glyph_header;
|
||||
}
|
||||
|
||||
|
||||
@ -112,8 +112,8 @@ class Vfs::Glyphs_file_system : public Vfs::Single_file_system
|
||||
bool write_ready() const override { return false; }
|
||||
};
|
||||
|
||||
typedef Registered<Vfs_watch_handle> Registered_watch_handle;
|
||||
typedef Registry<Registered_watch_handle> Watch_handle_registry;
|
||||
using Registered_watch_handle = Registered<Vfs_watch_handle>;
|
||||
using Watch_handle_registry = Registry<Registered_watch_handle>;
|
||||
|
||||
Watch_handle_registry _handle_registry { };
|
||||
|
||||
|
@ -32,13 +32,13 @@ namespace Vfs_ttf {
|
||||
class Local_factory;
|
||||
class File_system;
|
||||
|
||||
typedef Text_painter::Font Font;
|
||||
using Font = Text_painter::Font;
|
||||
}
|
||||
|
||||
|
||||
struct Vfs_ttf::Font_from_file
|
||||
{
|
||||
typedef Directory::Path Path;
|
||||
using Path = Directory::Path;
|
||||
|
||||
Directory const _dir;
|
||||
File_content const _content;
|
||||
@ -164,13 +164,13 @@ class Vfs_ttf::File_system : private Local_factory,
|
||||
{
|
||||
private:
|
||||
|
||||
typedef String<200> Config;
|
||||
using Config = String<200>;
|
||||
static Config _config(Xml_node node)
|
||||
{
|
||||
char buf[Config::capacity()] { };
|
||||
|
||||
Xml_generator xml(buf, sizeof(buf), "dir", [&] () {
|
||||
typedef String<64> Name;
|
||||
using Name = String<64>;
|
||||
xml.attribute("name", node.attribute_value("name", Name()));
|
||||
xml.node("glyphs", [&] () { });
|
||||
xml.node("readonly_value", [&] () { xml.attribute("name", "baseline"); });
|
||||
|
Reference in New Issue
Block a user