| 94 | } |
| 95 | |
| 96 | void openhd::validate_provided_ids(const std::vector<Setting>& settings) { |
| 97 | std::map<std::string, void*> test; |
| 98 | for (const auto& setting : settings) { |
| 99 | assert(setting.id.length() <= 16); |
| 100 | assert(test.find(setting.id) == test.end()); |
| 101 | test[setting.id] = nullptr; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | std::function<bool(std::string id, int requested_value)> |
| 106 | openhd::create_log_only_cb_int() { |