X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=input_mapping.h;h=10c3ca2901be0afe870ec9cbefc40ec9c31e0a60;hb=9e47a2f661b9d292598ef0277e507458e3dad62f;hp=a1e90eb483e245b049dc6b2cb3c13c643b56273a;hpb=a564f192f808841ad8dfa9a4aa6c8db3335bd6fd;p=nageru diff --git a/input_mapping.h b/input_mapping.h index a1e90eb..10c3ca2 100644 --- a/input_mapping.h +++ b/input_mapping.h @@ -2,6 +2,7 @@ #define _INPUT_MAPPING_H 1 #include +#include #include #include @@ -46,4 +47,11 @@ struct InputMapping { std::vector buses; }; +bool save_input_mapping_to_file(const std::map &devices, + const InputMapping &mapping, + const std::string &filename); +bool load_input_mapping_from_file(const std::map &devices, + const std::string &filename, + InputMapping *mapping); + #endif // !defined(_INPUT_MAPPING_H)