| 77 | |
| 78 | |
| 79 | bool EventFilter::AllowPath(const DBus::Object::Path &path) const noexcept |
| 80 | { |
| 81 | if (filter_paths.size() < 1) |
| 82 | { |
| 83 | return true; |
| 84 | } |
| 85 | auto r = std::lower_bound(filter_paths.begin(), filter_paths.end(), path); |
| 86 | return r != filter_paths.end(); |
| 87 | } |
| 88 | |
| 89 | |
| 90 | } // namespace Log |