| #include <boost/container/flat_map.hpp> |
| boost::container::flat_map<std::string, I2CDeviceType, std::less<>>; |
| I2CDeviceParams(const I2CDeviceType& type, uint64_t bus, uint64_t address) : |
| type(&type), bus(bus), address(address){}; |
| const I2CDeviceType* type; |
| bool devicePresent(void) const; |
| bool deviceStatic(void) const; |
| std::optional<I2CDeviceParams> |
| getI2CDeviceParams(const I2CDeviceTypeMap& dtmap, |
| const SensorBaseConfigMap& cfg); |
| explicit I2CDevice(I2CDeviceParams params); |
| // HACK: this declaration "should" live in Utils.hpp, but that leads to a |
| // tangle of header-dependency hell because each header needs types declared |
| std::vector<std::unique_ptr<sdbusplus::bus::match_t>> |
| setupPropertiesChangedMatches( |
| sdbusplus::asio::connection& bus, const I2CDeviceTypeMap& typeMap, |
| const std::function<void(sdbusplus::message_t&)>& handler); |