Patrick Williams | 32ffb03 | 2020-10-12 12:17:48 -0500 | [diff] [blame] | 1 | #include <sdbusplus/bus.hpp> |
| 2 | |
| 3 | namespace sdbusplus |
| 4 | { |
| 5 | namespace bus |
| 6 | { |
| 7 | |
| 8 | void bus::emit_interfaces_added(const char* path, |
| 9 | const std::vector<std::string>& ifaces) |
| 10 | { |
| 11 | details::Strv s{ifaces}; |
| 12 | _intf->sd_bus_emit_interfaces_added_strv(_bus.get(), path, |
| 13 | static_cast<char**>(s)); |
| 14 | } |
| 15 | |
| 16 | void bus::emit_interfaces_removed(const char* path, |
| 17 | const std::vector<std::string>& ifaces) |
| 18 | { |
| 19 | details::Strv s{ifaces}; |
| 20 | _intf->sd_bus_emit_interfaces_removed_strv(_bus.get(), path, |
| 21 | static_cast<char**>(s)); |
| 22 | } |
| 23 | |
| 24 | } // namespace bus |
| 25 | } // namespace sdbusplus |