]> git.sesse.net Git - nageru/blobdiff - input_mapping.h
Write 1.4.0 changelog.
[nageru] / input_mapping.h
index a1e90eb483e245b049dc6b2cb3c13c643b56273a..10c3ca2901be0afe870ec9cbefc40ec9c31e0a60 100644 (file)
@@ -2,6 +2,7 @@
 #define _INPUT_MAPPING_H 1
 
 #include <stdint.h>
+#include <map>
 #include <string>
 #include <vector>
 
@@ -46,4 +47,11 @@ struct InputMapping {
        std::vector<Bus> buses;
 };
 
+bool save_input_mapping_to_file(const std::map<DeviceSpec, DeviceInfo> &devices,
+                                const InputMapping &mapping,
+                                const std::string &filename);
+bool load_input_mapping_from_file(const std::map<DeviceSpec, DeviceInfo> &devices,
+                                  const std::string &filename,
+                                  InputMapping *mapping);
+
 #endif  // !defined(_INPUT_MAPPING_H)