Serenity Operating System
1/*
2 * Copyright (c) 2020, Hüseyin Aslıtürk <asliturk@hotmail.com>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#pragma once
8
9#include <AK/JsonObject.h>
10#include <LibKeyboard/CharacterMapData.h>
11
12namespace Keyboard {
13
14class CharacterMapFile {
15
16public:
17 static ErrorOr<CharacterMapData> load_from_file(DeprecatedString const& filename);
18
19private:
20 static Vector<u32> read_map(JsonObject const& json, DeprecatedString const& name);
21};
22
23}