spiegel-keyman/core/tests/unit/load_kmx_file.hpp
Eberhard Beilharz 3dc3f040de
feat(core): implement loading KMX from blob
- split keyboard loading into loading KMX file into blob and then
  loading the keyboard processor from the blob.
- deprecate `km_core_keyboard_load`
- move file access next to deprecated method. This is now the only place
  that loads a file in Core; unit tests have some more places that
  load files.
- introduce GTest and add unit tests for loading from blob

Cherry-picked from `epic/web-core` branch.

Cherry-Pick-Commit: 1deaa323ad
Cherry-Pick-Commit: 59019cc8b7
Cherry-Pick-Commit: bc46458368
Cherry-Pick-Commit: d06aa29956
Cherry-Pick-Commit: 1c88166f6e
Cherry-Pick-Commit: 069cd21ecd
Cherry-Pick-Commit: 052ae2ec35
Cherry-Pick-Commit: 11a2a3ba3a

Part-of: #11293
Part-of: #8093
2024-11-27 15:30:05 +01:00

14 lines
222 B
C++

#ifndef __LOAD_KMX_FILE_HPP__
#define __LOAD_KMX_FILE_HPP__
#include "path.hpp"
namespace km {
namespace tests {
std::vector<uint8_t> load_kmx_file(km::core::path const& kb_path);
}
}
#endif // __LOAD_KMX_FILE_HPP__