Home
last modified time | relevance | path

Searched refs:sdbusplus (Results 1 – 25 of 1367) sorted by relevance

12345678910>>...55

/openbmc/sdbusplus/tools/
H A Dmeson.build3 'sdbusplus/__init__.py',
4 'sdbusplus/enum.py',
5 'sdbusplus/error.py',
6 'sdbusplus/event.py',
7 'sdbusplus/interface.py',
8 'sdbusplus/main.py',
9 'sdbusplus/method.py',
10 'sdbusplus/namedelement.py',
11 'sdbusplus/path.py',
12 'sdbusplus/property.py',
[all …]
/openbmc/sdbusplus/test/message/
H A Dtypes.cpp9 return std::string(sdbusplus::utility::tuple_to_array( in dbus_string()
10 sdbusplus::message::types::type_id<Args...>()) in dbus_string()
41 EXPECT_EQ(dbus_string(sdbusplus::message::object_path("/asdf")), "o"); in TEST()
46 EXPECT_EQ(sdbusplus::message::object_path("/abc/def").filename(), "def"); in TEST()
47 EXPECT_EQ(sdbusplus::message::object_path("/abc/").filename(), ""); in TEST()
48 EXPECT_EQ(sdbusplus::message::object_path("/abc").filename(), "abc"); in TEST()
49 EXPECT_EQ(sdbusplus::message::object_path("/_61bc").filename(), "abc"); in TEST()
50 EXPECT_EQ(sdbusplus::message::object_path("/").filename(), ""); in TEST()
51 EXPECT_EQ(sdbusplus::message::object_path("").filename(), ""); in TEST()
52 EXPECT_EQ(sdbusplus::message::object_path("abc").filename(), ""); in TEST()
[all …]
H A Dnative_types.cpp18 std::string s1 = sdbusplus::message::object_path("/asdf/"); in TEST()
19 sdbusplus::message::object_path p = std::move(s1); in TEST()
27 std::string s2 = sdbusplus::message::signature("iii"); in TEST()
28 sdbusplus::message::signature sig = s2; in TEST()
36 std::vector<sdbusplus::message::signature> v = { in TEST()
37 sdbusplus::message::signature("iii")}; in TEST()
44 std::map<sdbusplus::message::signature, int> m = { in TEST()
45 {sdbusplus::message::signature("iii"), 1}}; in TEST()
47 ASSERT_EQ(m[sdbusplus::message::signature("iii")], 1); in TEST()
52 std::unordered_map<sdbusplus::message::signature, int> u = { in TEST()
[all …]
/openbmc/phosphor-state-manager/
H A Dhost_state_manager.hpp27 using HostInherit = sdbusplus::server::object_t<
28 sdbusplus::server::xyz::openbmc_project::state::Host,
29 sdbusplus::server::xyz::openbmc_project::state::boot::Progress,
30 sdbusplus::server::xyz::openbmc_project::control::boot::RebootAttempts,
31 sdbusplus::server::xyz::openbmc_project::state::operating_system::Status>;
35 namespace sdbusRule = sdbusplus::bus::match::rules;
56 Host(sdbusplus::bus_t& bus, const char* objPath, size_t id) : in Host()
63 [this](sdbusplus::message_t& m) { sysStateChangeJobRemoved(m); }), in Host()
69 [this](sdbusplus::message_t& m) { sysStateChangeJobNew(m); }), in __anon553c66d80202()
85 attemptsLeft(sdbusplus::server::xyz::openbmc_project::control::boot::
[all …]
H A Dsystemd_target_signal.hpp33 sdbusplus::bus_t& bus) : in SystemdTargetLogging()
37 sdbusplus::bus::match::rules::type::signal() + in SystemdTargetLogging()
38 sdbusplus::bus::match::rules::member("JobRemoved") + in SystemdTargetLogging()
39 sdbusplus::bus::match::rules::path( in SystemdTargetLogging()
41 sdbusplus::bus::match::rules::interface( in SystemdTargetLogging()
43 [this](sdbusplus::message_t& m) { systemdUnitChange(m); }), in SystemdTargetLogging()
45 bus, sdbusplus::bus::match::rules::nameOwnerChanged(),
46 [this](sdbusplus::message_t& m) { processNameChangeSignal(m); }) in __anonedb643ec0202()
91 void systemdUnitChange(sdbusplus::message_t& msg);
101 void processNameChangeSignal(sdbusplus::message_t& msg);
[all …]
H A Dutils.cpp36 using ObjectMapper = sdbusplus::client::xyz::openbmc_project::ObjectMapper<>;
37 using ActBlockTrans = sdbusplus::client::xyz::openbmc_project::software::
40 void subscribeToSystemdSignals(sdbusplus::bus_t& bus) in subscribeToSystemdSignals()
54 catch (const sdbusplus::exception_t& e) in subscribeToSystemdSignals()
62 std::string getService(sdbusplus::bus_t& bus, std::string path, in getService()
87 catch (const sdbusplus::exception_t& e) in getService()
98 std::string getProperty(sdbusplus::bus_t& bus, const std::string& path, in getProperty()
115 catch (const sdbusplus::exception_t& e) in getProperty()
132 void setProperty(sdbusplus::bus_t& bus, const std::string& path, in setProperty()
173 sdbusplus::bus_t& bus, const std::string& errorMsg, in createError()
[all …]
H A Dchassis_state_manager.hpp25 using ChassisInherit = sdbusplus::server::object_t<
26 sdbusplus::server::xyz::openbmc_project::state::Chassis,
27 sdbusplus::server::xyz::openbmc_project::state::PowerOnHours>;
28 namespace sdbusRule = sdbusplus::bus::match::rules;
49 Chassis(sdbusplus::bus_t& bus, const char* objPath, size_t id) : in Chassis()
57 [this](sdbusplus::message_t& m) { sysStateChange(m); }), in Chassis()
154 int sysStateChange(sdbusplus::message_t& msg);
157 sdbusplus::bus_t& bus;
160 sdbusplus::bus::match_t systemdSignals;
163 std::unique_ptr<sdbusplus::bus::match_t> uPowerPropChangeSignal;
[all …]
/openbmc/phosphor-power/phosphor-power-sequencer/src/
H A Dpower_interface.cpp35 PowerInterface::PowerInterface(sdbusplus::bus_t& bus, const char* path) : in PowerInterface()
53 sdbusplus::message_t(msg).append(pgood); in callbackGetPgood()
55 catch (const sdbusplus::exception_t& e) in callbackGetPgood()
84 sdbusplus::message_t(msg).append(timeout); in callbackGetPgoodTimeout()
86 catch (const sdbusplus::exception_t& e) in callbackGetPgoodTimeout()
116 auto reply = sdbusplus::message_t(msg).new_method_return(); in callbackGetPowerState()
120 catch (const sdbusplus::exception_t& e) in callbackGetPowerState()
144 auto m = sdbusplus::message_t(msg); in callbackSetPgoodTimeout()
154 catch (const sdbusplus::exception_t& e) in callbackSetPgoodTimeout()
184 sdbusplus::message_t(msg).append(state); in callbackGetState()
[all …]
/openbmc/sdbusplus/include/sdbusplus/server/
H A Dtransaction.hpp11 namespace sdbusplus namespace
36 Transaction(sdbusplus::bus_t& bus_in, sdbusplus::message_t& msg_in) : in Transaction()
40 sdbusplus::bus_t& bus;
41 sdbusplus::message_t& msg;
53 struct hash<sdbusplus::bus_t>
55 size_t operator()(sdbusplus::bus_t& b) const;
60 struct hash<sdbusplus::message_t>
62 size_t operator()(sdbusplus::message_t& m) const;
67 struct hash<sdbusplus::server::transaction::Transaction>
70 operator()(const sdbusplus::server::transaction::Transaction& t) const;
[all …]
/openbmc/smbios-mdr/include/
H A Ddimm.hpp37 sdbusplus::server::xyz::openbmc_project::inventory::item::Dimm::DeviceType;
40 sdbusplus::server::xyz::openbmc_project::inventory::item::Dimm::Ecc;
43 sdbusplus::server::xyz::openbmc_project::inventory::item::Dimm::MemoryTech;
48 sdbusplus::server::object_t<
49 sdbusplus::server::xyz::openbmc_project::inventory::item::Dimm>,
50 sdbusplus::server::object_t<sdbusplus::server::xyz::openbmc_project::
52 sdbusplus::server::object_t<
53 sdbusplus::server::xyz::openbmc_project::inventory::decorator::Asset>,
54 sdbusplus::server::object_t<sdbusplus::server::xyz::openbmc_project::
56 sdbusplus::server::object_t<
[all …]
/openbmc/sdbusplus/example/
H A Dget-all-properties.cpp21 Application(sdbusplus::asio::connection& bus, in Application()
22 sdbusplus::asio::object_server& objServer) : in Application()
29 propertyGrettingName, sdbusplus::vtable::property_::const_, in Application()
33 propertyGoodbyesName, sdbusplus::vtable::property_::emits_change, in Application()
41 propertyValueName, sdbusplus::vtable::property_::const_, in Application()
64 void logUnpackError(const sdbusplus::UnpackErrorReason reason, in logUnpackError()
73 const sdbusplus::exception::UnpackPropertyError& error) in logExpectedException()
80 sdbusplus::asio::getAllProperties( in asyncGetAllPropertiesStringTypeOnly()
94 const bool success = sdbusplus::unpackPropertiesNoThrow( in asyncGetAllPropertiesStringTypeOnly()
95 [this](const sdbusplus::UnpackErrorReason reason, in asyncGetAllPropertiesStringTypeOnly()
[all …]
/openbmc/phosphor-bmc-code-mgmt/bmc/
H A Dactivation.hpp33 using ActivationInherit = sdbusplus::server::object_t<
34 sdbusplus::server::xyz::openbmc_project::software::Activation,
35 sdbusplus::server::xyz::openbmc_project::association::Definitions>;
37 sdbusplus::server::object_t<sdbusplus::server::xyz::openbmc_project::
39 using RedundancyPriorityInherit = sdbusplus::server::object_t<
40 sdbusplus::server::xyz::openbmc_project::software::RedundancyPriority>;
41 using ActivationProgressInherit = sdbusplus::server::object_t<
42 sdbusplus::server::xyz::openbmc_project::software::ActivationProgress>;
44 sdbusplus::common::xyz::openbmc_project::software::ApplyTime;
53 namespace sdbusRule = sdbusplus::bus::match::rules;
[all …]
/openbmc/openpower-pnor-code-mgmt/
H A Dactivation.hpp26 using ActivationInherit = sdbusplus::server::object_t<
27 sdbusplus::xyz::openbmc_project::Software::server::ExtendedVersion,
28 sdbusplus::xyz::openbmc_project::Software::server::Activation,
29 sdbusplus::xyz::openbmc_project::Association::server::Definitions>;
31 sdbusplus::server::object_t<sdbusplus::xyz::openbmc_project::Software::
33 using RedundancyPriorityInherit = sdbusplus::server::object_t<
34 sdbusplus::xyz::openbmc_project::Software::server::RedundancyPriority>;
35 using ActivationProgressInherit = sdbusplus::server::object_t<
36 sdbusplus::xyz::openbmc_project::Software::server::ActivationProgress>;
51 namespace sdbusRule = sdbusplus::bus::match::rules;
[all …]
H A Ditem_updater.hpp21 using ItemUpdaterInherit = sdbusplus::server::object_t<
22 sdbusplus::xyz::openbmc_project::Common::server::FactoryReset,
23 sdbusplus::xyz::openbmc_project::Association::server::Definitions,
24 sdbusplus::xyz::openbmc_project::Collection::server::DeleteAll>;
25 using GardResetInherit = sdbusplus::server::object_t<
26 sdbusplus::xyz::openbmc_project::Common::server::FactoryReset>;
27 using ObjectEnable = sdbusplus::server::object_t<
28 sdbusplus::xyz::openbmc_project::Object::server::Enable>;
29 namespace MatchRules = sdbusplus::bus::match::rules;
50 GardReset(sdbusplus::bus_t& bus, const std::string& path) : in GardReset()
[all …]
/openbmc/phosphor-inventory-manager/test/
H A Dinterface_ops_test.cpp55 DummyInterfaceWithoutProperties(sdbusplus::bus_t&, const char* name) in DummyInterfaceWithoutProperties()
65 DummyInterfaceWithProperties(sdbusplus::bus_t&, const char* name, in DummyInterfaceWithProperties()
118 sdbusplus::SdBusMock interface; in TEST()
123 auto b = sdbusplus::get_mocked_new(&interface); in TEST()
135 sdbusplus::SdBusMock interface; in TEST()
140 auto b = sdbusplus::get_mocked_new(&interface); in TEST()
152 sdbusplus::SdBusMock interface; in TEST()
157 auto b = sdbusplus::get_mocked_new(&interface); in TEST()
169 sdbusplus::SdBusMock interface; in TEST()
174 auto b = sdbusplus::get_mocked_new(&interface); in TEST()
[all …]
/openbmc/dbus-sensors/src/mctp/
H A DMCTPReactorMain.cpp37 const std::shared_ptr<sdbusplus::asio::connection>& connection) : in DBusAssociationServer()
51 std::shared_ptr<sdbusplus::asio::dbus_interface> iface = entry->second; in associate()
64 std::shared_ptr<sdbusplus::asio::dbus_interface> iface = entry->second; in disassociate()
70 std::shared_ptr<sdbusplus::asio::connection> connection;
71 sdbusplus::asio::object_server server;
72 std::map<std::string, std::shared_ptr<sdbusplus::asio::dbus_interface>>
77 const std::shared_ptr<sdbusplus::asio::connection>& connection, in deviceFromConfig()
98 const std::shared_ptr<sdbusplus::asio::connection>& connection, in addInventory()
99 const std::shared_ptr<MCTPReactor>& reactor, sdbusplus::message_t& msg) in addInventory()
102 exposed] = msg.unpack<sdbusplus::message::object_path, SensorData>(); in addInventory()
[all …]
/openbmc/phosphor-led-manager/fault-monitor/
H A Dfru-fault-monitor.hpp26 void action(sdbusplus::bus_t& bus, const std::string& path, bool assert);
47 Remove(sdbusplus::bus_t& bus, const std::string& path) : in Remove()
50 [this](sdbusplus::message_t& m) { removed(m); }) in Remove()
60 sdbusplus::bus::match_t matchRemoved;
65 void removed(sdbusplus::message_t& msg);
72 namespace MatchRules = sdbusplus::bus::match::rules; in match()
100 explicit Add(sdbusplus::bus_t& bus) : in Add()
102 sdbusplus::bus::match::rules::interfacesAdded() + in Add()
103 sdbusplus::bus::match::rules::path_namespace( in Add()
105 [this](sdbusplus::message_t& m) { created(m); }) in Add()
[all …]
/openbmc/kcsbridge/src/
H A Dserver.cpp17 void setAttention(sdbusplus::message_t& m, stdplus::Fd& kcs) in setAttention()
23 void clearAttention(sdbusplus::message_t& m, stdplus::Fd& kcs) in clearAttention()
29 void forceAbort(sdbusplus::message_t& m, stdplus::Fd& kcs) in forceAbort()
38 sdbusplus::message_t m(mptr); in methodRsp()
54 constexpr sdbusplus::vtable::vtable_t dbusMethods[] = {
55 sdbusplus::vtable::start(),
56 sdbusplus::vtable::method("setAttention", "", "",
58 sdbusplus::vtable::method("clearAttention", "", "",
60 sdbusplus::vtable::method("forceAbort", "", "",
62 sdbusplus::vtable::end(),
[all …]
/openbmc/pldm/platform-mc/
H A Dnumeric_sensor.hpp29 using SensorUnit = sdbusplus::xyz::openbmc_project::Sensor::server::Value::Unit;
30 using ValueIntf = sdbusplus::server::object_t<
31 sdbusplus::xyz::openbmc_project::Sensor::server::Value>;
32 using MetricUnit = sdbusplus::xyz::openbmc_project::Metric::server::Value::Unit;
33 using MetricIntf = sdbusplus::server::object_t<
34 sdbusplus::xyz::openbmc_project::Metric::server::Value>;
35 using ThresholdWarningIntf = sdbusplus::server::object_t<
36 sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Warning>;
37 using ThresholdCriticalIntf = sdbusplus::server::object_t<
38 sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Critical>;
[all …]
/openbmc/phosphor-buttons/inc/
H A Dbutton_handler.hpp64 explicit Handler(sdbusplus::bus_t& bus);
74 void powerReleased(sdbusplus::message_t& msg);
83 void idReleased(sdbusplus::message_t& msg);
92 void resetReleased(sdbusplus::message_t& msg);
103 void debugHostSelectorReleased(sdbusplus::message_t& msg);
157 sdbusplus::bus_t& bus;
162 std::unique_ptr<sdbusplus::bus::match_t> powerButtonReleased;
167 std::unique_ptr<sdbusplus::bus::match_t> powerButtonLongPressed;
172 std::vector<std::unique_ptr<sdbusplus::bus::match_t>>
178 std::unique_ptr<sdbusplus::bus::match_t> idButtonReleased;
[all …]
/openbmc/phosphor-virtual-sensor/
H A DdbusSensor.cpp10 sdbusplus::common::xyz::openbmc_project::sensor::Value::interface;
20 DbusSensor::DbusSensor(sdbusplus::bus_t& bus, const std::string& path, in DbusSensor()
24 bus, sdbusplus::bus::match::rules::propertiesChanged(path, sensorIntf), in DbusSensor()
25 [this](sdbusplus::message_t& message) { in DbusSensor()
30 sdbusplus::bus::match::rules::interfacesRemoved(interfacesSensorPath),
31 [this](sdbusplus::message_t& message) { in __anona3fb8bc80202()
57 signalNameOwnerChanged = std::make_unique<sdbusplus::bus::match_t>( in initSensorValue()
59 sdbusplus::bus::match::rules::nameOwnerChanged() + in initSensorValue()
60 sdbusplus::bus::match::rules::arg0namespace(servName), in initSensorValue()
61 [this](sdbusplus::message_t& message) { in initSensorValue()
[all …]
/openbmc/phosphor-psu-code-mgmt/src/
H A Dactivation.hpp30 namespace sdbusRule = sdbusplus::bus::match::rules;
33 sdbusplus::server::object_t<sdbusplus::xyz::openbmc_project::Software::
57 ActivationBlocksTransition(sdbusplus::bus_t& bus, const std::string& path) : in ActivationBlocksTransition()
71 sdbusplus::bus_t& bus;
80 using ActivationProgressInherit = sdbusplus::server::object_t<
81 sdbusplus::xyz::openbmc_project::Software::server::ActivationProgress>;
91 ActivationProgress(sdbusplus::bus_t& bus, const std::string& path) : in ActivationProgress()
99 using ActivationInherit = sdbusplus::server::object_t<
100 sdbusplus::xyz::openbmc_project::Software::server::ExtendedVersion,
101 sdbusplus::xyz::openbmc_project::Software::server::Activation,
[all …]
/openbmc/sdbusplus/include/sdbusplus/message/
H A Dappend.hpp17 namespace sdbusplus namespace
28 inline void append(sdbusplus::SdBusInterface* /*intf*/, sd_bus_message* /*m*/) in append()
42 void append(sdbusplus::SdBusInterface* intf, sd_bus_message* m, Args&&... args);
156 op(sdbusplus::SdBusInterface* intf, sd_bus_message* m, T&& t) in op()
171 op(sdbusplus::SdBusInterface* intf, sd_bus_message* m, T&& t) in op()
173 auto value = sdbusplus::message::convert_to_string<Td<T>>(t); in op()
174 sdbusplus::message::append(intf, m, value); in op()
196 static void op(sdbusplus::SdBusInterface* intf, sd_bus_message* m, T&& s) in op()
211 static void op(sdbusplus::SdBusInterface* intf, sd_bus_message* m, T&& s) in op()
223 static void op(sdbusplus::SdBusInterface* intf, sd_bus_message* m, T&& s) in op()
[all …]
/openbmc/phosphor-networkd/src/
H A Dethernet_interface.hpp32 using Ifaces = sdbusplus::server::object_t<
33 sdbusplus::xyz::openbmc_project::Network::server::EthernetInterface,
34 sdbusplus::xyz::openbmc_project::Network::server::MACAddress,
35 sdbusplus::xyz::openbmc_project::Network::IP::server::Create,
36 sdbusplus::xyz::openbmc_project::Network::Neighbor::server::CreateStatic,
37 sdbusplus::xyz::openbmc_project::Network::StaticGateway::server::Create,
38 sdbusplus::xyz::openbmc_project::Collection::server::DeleteAll>;
40 using VlanIfaces = sdbusplus::server::object_t<
41 sdbusplus::xyz::openbmc_project::Object::server::Delete,
42 sdbusplus::xyz::openbmc_project::Network::server::VLAN>;
[all …]
/openbmc/smbios-mdr/src/
H A Dcpuinfo_utils.cpp31 using namespace sdbusplus::server::xyz::openbmc_project;
41 static std::shared_ptr<sdbusplus::asio::connection> dbusConn;
121 catch (const sdbusplus::exception::InvalidEnumString& ex) in updateOsState()
161 sdbusplus::bus::match_t** propertiesChangedMatch = nullptr, in subscribeToProperty()
162 sdbusplus::bus::match_t** interfacesAddedMatch = nullptr) in subscribeToProperty()
168 using InterfaceVariant = typename sdbusplus::utility::dedup_variant_t< in subscribeToProperty()
171 std::string, sdbusplus::message::object_path>; in subscribeToProperty()
173 sdbusplus::asio::getProperty<PropertyType>( in subscribeToProperty()
216 auto* propMatch = new sdbusplus::bus::match_t( in subscribeToProperty()
218 sdbusplus::bus::match::rules::sender(service) + in subscribeToProperty()
[all …]

12345678910>>...55