forked from Kistler-Group/sdbus-cpp
Add object manager support to IConnection interface (#54)
This commit is contained in:
committed by
GitHub
parent
c13ee60b7e
commit
4b0c23204d
@@ -103,6 +103,15 @@ ISdBus& Connection::getSdBusInterface()
|
||||
return *iface_.get();
|
||||
}
|
||||
|
||||
void Connection::addObjectManager( const std::string& objectPath )
|
||||
{
|
||||
auto r = iface_->sd_bus_add_object_manager( bus_.get()
|
||||
, NULL
|
||||
, objectPath.c_str() );
|
||||
|
||||
SDBUS_THROW_ERROR_IF(r < 0, "Failed to add object manager", -r);
|
||||
}
|
||||
|
||||
sd_bus_slot* Connection::addObjectVTable( const std::string& objectPath
|
||||
, const std::string& interfaceName
|
||||
, const sd_bus_vtable* vtable
|
||||
|
||||
Reference in New Issue
Block a user