| 228 | } |
| 229 | |
| 230 | uint64_t Connection::getMethodCallTimeout() const |
| 231 | { |
| 232 | uint64_t timeout{}; |
| 233 | |
| 234 | auto r = sdbus_->sd_bus_get_method_call_timeout(bus_.get(), &timeout); |
| 235 | |
| 236 | SDBUS_THROW_ERROR_IF(r < 0, "Failed to get method call timeout", -r); |
| 237 | |
| 238 | return timeout; |
| 239 | } |
| 240 | |
| 241 | void Connection::addMatch(const std::string& match, message_handler callback) |
| 242 | { |