Lines Matching refs:asio
74 std::string, std::vector<std::weak_ptr<sdbusplus::asio::dbus_interface>>>
78 std::shared_ptr<sdbusplus::asio::connection> systemBus;
82 boost::asio::io_context io;
88 void tryIfaceInitialize(std::shared_ptr<sdbusplus::asio::dbus_interface>& iface) in tryIfaceInitialize()
119 static std::shared_ptr<sdbusplus::asio::dbus_interface>
120 createInterface(sdbusplus::asio::object_server& objServer, in createInterface()
178 sdbusplus::asio::dbus_interface* iface, in addArrayToDbus()
179 sdbusplus::asio::PropertyPermission permission, in addArrayToDbus()
193 if (permission == sdbusplus::asio::PropertyPermission::readOnly) in addArrayToDbus()
224 sdbusplus::asio::dbus_interface* iface, in addProperty()
227 sdbusplus::asio::PropertyPermission permission) in addProperty()
229 if (permission == sdbusplus::asio::PropertyPermission::readOnly) in addProperty()
257 const std::shared_ptr<sdbusplus::asio::dbus_interface>& iface, in createDeleteObjectMethod()
258 sdbusplus::asio::object_server& objServer, in createDeleteObjectMethod()
261 std::weak_ptr<sdbusplus::asio::dbus_interface> interface = iface; in createDeleteObjectMethod()
265 std::shared_ptr<sdbusplus::asio::dbus_interface> dbusInterface = in createDeleteObjectMethod()
278 boost::asio::post(io, [&objServer, dbusInterface]() mutable { in createDeleteObjectMethod()
293 std::shared_ptr<sdbusplus::asio::dbus_interface>& iface, in populateInterfaceFromJson()
294 nlohmann::json& dict, sdbusplus::asio::object_server& objServer, in populateInterfaceFromJson()
295 sdbusplus::asio::PropertyPermission permission = in populateInterfaceFromJson()
296 sdbusplus::asio::PropertyPermission::readOnly) in populateInterfaceFromJson()
332 if (permission == sdbusplus::asio::PropertyPermission::readWrite) in populateInterfaceFromJson()
381 sdbusplus::asio::PropertyPermission::readOnly); in populateInterfaceFromJson()
397 sdbusplus::asio::PropertyPermission::readOnly); in populateInterfaceFromJson()
439 if (permission == sdbusplus::asio::PropertyPermission::readWrite) in populateInterfaceFromJson()
447 sdbusplus::asio::PropertyPermission getPermission(const std::string& interface) in getPermission()
451 ? sdbusplus::asio::PropertyPermission::readWrite in getPermission()
452 : sdbusplus::asio::PropertyPermission::readOnly; in getPermission()
458 sdbusplus::asio::object_server& objServer, const std::string& board) in createAddObjectMethod()
460 std::shared_ptr<sdbusplus::asio::dbus_interface> iface = createInterface( in createAddObjectMethod()
567 std::shared_ptr<sdbusplus::asio::dbus_interface> interface = in createAddObjectMethod()
577 sdbusplus::asio::PropertyPermission::readWrite); in createAddObjectMethod()
584 sdbusplus::asio::object_server& objServer) in postToDbus()
622 std::shared_ptr<sdbusplus::asio::dbus_interface> inventoryIface = in postToDbus()
626 std::shared_ptr<sdbusplus::asio::dbus_interface> boardIface = in postToDbus()
642 std::shared_ptr<sdbusplus::asio::dbus_interface> iface = in postToDbus()
705 std::shared_ptr<sdbusplus::asio::dbus_interface> bmcIface = in postToDbus()
715 std::shared_ptr<sdbusplus::asio::dbus_interface> systemIface = in postToDbus()
736 std::shared_ptr<sdbusplus::asio::dbus_interface> in postToDbus()
780 std::shared_ptr<sdbusplus::asio::dbus_interface> in postToDbus()
794 std::shared_ptr<sdbusplus::asio::dbus_interface> itemIface = in postToDbus()
934 void startRemovedTimer(boost::asio::steady_timer& timer, in startRemovedTimer()
957 if (ec == boost::asio::error::operation_aborted) in startRemovedTimer()
977 static std::vector<std::weak_ptr<sdbusplus::asio::dbus_interface>>&
984 sdbusplus::asio::object_server& objServer, in pruneConfiguration()
1029 boost::asio::steady_timer& timer, nlohmann::json& systemConfiguration, in publishNewConfiguration()
1038 sdbusplus::asio::object_server& objServer) in publishNewConfiguration()
1042 boost::asio::post(io, [systemConfiguration]() { in publishNewConfiguration()
1049 boost::asio::post(io, [&instance, count, &timer, newConfiguration, in publishNewConfiguration()
1061 sdbusplus::asio::object_server& objServer) in propertiesChangedCallback()
1064 static boost::asio::steady_timer timer(io); in propertiesChangedCallback()
1074 if (ec == boost::asio::error::operation_aborted) in propertiesChangedCallback()
1130 boost::asio::post( in propertiesChangedCallback()
1240 systemBus = std::make_shared<sdbusplus::asio::connection>(io); in main()
1245 sdbusplus::asio::object_server objServer(systemBus, /*skipManager=*/true); in main()
1253 std::shared_ptr<sdbusplus::asio::dbus_interface> entityIface = in main()
1305 boost::asio::post(io, [&]() { in main()