Lines Matching +full:d +full:- +full:bus

6 #include <phosphor-logging/elog.hpp>
7 #include <phosphor-logging/log.hpp>
8 #include <sdbusplus/bus.hpp>
23 constexpr auto POWEROFF_TARGET = "obmc-chassis-hard-poweroff@0.target";
41 * @param[in] path - the D-Bus path name
42 * @param[in] interface - the D-Bus interface name
43 * @param[in] bus - the D-Bus object
44 * @param[in] logError - log error when no service found
49 sdbusplus::bus_t& bus, bool logError = true);
52 * @brief Read a D-Bus property
54 * @param[in] interface - the interface the property is on
55 * @param[in] propertName - the name of the property
56 * @param[in] path - the D-Bus path
57 * @param[in] service - the D-Bus service
58 * @param[in] bus - the D-Bus object
59 * @param[out] value - filled in with the property value
64 sdbusplus::bus_t& bus, T& value) in getProperty() argument
68 auto method = bus.new_method_call(service.c_str(), path.c_str(), in getProperty()
73 auto reply = bus.call(method); in getProperty()
80 * @brief Write a D-Bus property
82 * @param[in] interface - the interface the property is on
83 * @param[in] propertName - the name of the property
84 * @param[in] path - the D-Bus path
85 * @param[in] service - the D-Bus service
86 * @param[in] bus - the D-Bus object
87 * @param[in] value - the value to set the property to
92 sdbusplus::bus_t& bus, T& value) in setProperty() argument
96 auto method = bus.new_method_call(service.c_str(), path.c_str(), in setProperty()
101 auto reply = bus.call(method); in setProperty()
105 * @brief Get all D-Bus properties
107 * @param[in] bus - the D-Bus object
108 * @param[in] path - the D-Bus object path
109 * @param[in] interface - the D-Bus interface name
110 * @param[in] service - the D-Bus service name (optional)
112 * @return DbusPropertyMap - Map of property names and values
114 DbusPropertyMap getAllProperties(sdbusplus::bus_t& bus, const std::string& path,
122 * https://github.com/openbmc/docs/blob/master/architecture/object-mapper.md
124 * @param[in] bus - The D-Bus object.
125 * @param[in] path - The root of the tree to search.
126 * @param[in] interface - Interface in the subtree to search for
127 * @param[in] depth - The number of path elements to descend.
129 * @return DbusSubtree - Map of object paths to a map of service names to their
132 DbusSubtree getSubTree(sdbusplus::bus_t& bus, const std::string& path,
139 * https://github.com/openbmc/docs/blob/master/architecture/object-mapper.md
141 * @param[in] bus - The D-Bus object.
142 * @param[in] path - The root of the tree to search.
143 * @param[in] interfaces - Interfaces in the subtree to search for.
144 * @param[in] depth - The number of path elements to descend.
146 * @return DbusSubtree - Map of object paths to a map of service names to their
149 DbusSubtree getSubTree(sdbusplus::bus_t& bus, const std::string& path,
158 * https://github.com/openbmc/docs/blob/master/architecture/object-mapper.md
160 * @param[in] bus - The D-Bus object.
161 * @param[in] associationPath - The association it must be an endpoint of.
162 * @param[in] path - The root of the tree to search.
163 * @param[in] interfaces - The interfaces in the subtree to search for
164 * @param[in] depth - The number of path elements to descend.
166 * @return std::vector<DbusPath> - The object paths.
169 sdbusplus::bus_t& bus,
177 * @tparam T - error that will be logged before the power off
178 * @param[in] bus - D-Bus object
181 void powerOff(sdbusplus::bus_t& bus) in powerOff() argument
185 auto method = bus.new_method_call(SYSTEMD_SERVICE, SYSTEMD_ROOT, in powerOff()
191 bus.call_noreply(method); in powerOff()
197 * @param[in] path - The path of the json file
206 * @param[in] json - The json object
215 * @param[in] bus - D-Bus object
216 * @param[in] defaultState - The default state if the function fails to get
222 bool isPoweredOn(sdbusplus::bus_t& bus, bool defaultState = false);
225 * Get all PSU inventory paths from D-Bus
227 * @param[in] bus - D-Bus object
231 std::vector<std::string> getPSUInventoryPaths(sdbusplus::bus_t& bus);