Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Adriana Kobylak | 99c8c0e | 2017-04-17 13:39:11 -0500 | [diff] [blame] | 3 | #include <sdbusplus/server.hpp> |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 4 | #include <xyz/openbmc_project/Software/Activation/server.hpp> |
Adriana Kobylak | ea9626f | 2017-04-05 15:37:40 -0500 | [diff] [blame] | 5 | #include <xyz/openbmc_project/Software/ActivationBlocksTransition/server.hpp> |
Saqib Khan | 7254f0e | 2017-04-10 21:45:37 -0500 | [diff] [blame] | 6 | #include "xyz/openbmc_project/Software/ExtendedVersion/server.hpp" |
Saqib Khan | 942df8a | 2017-06-01 14:09:27 -0500 | [diff] [blame] | 7 | #include "xyz/openbmc_project/Software/RedundancyPriority/server.hpp" |
Michael Tritz | 1793b64 | 2017-06-28 18:35:58 -0500 | [diff] [blame] | 8 | #include "xyz/openbmc_project/Software/ActivationProgress/server.hpp" |
Saqib Khan | c350c61 | 2017-08-13 13:36:44 -0500 | [diff] [blame] | 9 | #include "org/openbmc/Associations/server.hpp" |
Jayanth Othayoth | 11271fb | 2018-03-29 10:25:50 -0500 | [diff] [blame] | 10 | #include "config.h" |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 11 | |
| 12 | namespace openpower |
| 13 | { |
| 14 | namespace software |
| 15 | { |
Adriana Kobylak | befe5ce | 2017-04-05 15:57:44 -0500 | [diff] [blame] | 16 | namespace updater |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 17 | { |
| 18 | |
Gunnar Mills | 3edb84b | 2017-08-18 15:13:15 -0500 | [diff] [blame] | 19 | using AssociationList = |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 20 | std::vector<std::tuple<std::string, std::string, std::string>>; |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 21 | using ActivationInherit = sdbusplus::server::object::object< |
Saqib Khan | 7254f0e | 2017-04-10 21:45:37 -0500 | [diff] [blame] | 22 | sdbusplus::xyz::openbmc_project::Software::server::ExtendedVersion, |
Saqib Khan | c350c61 | 2017-08-13 13:36:44 -0500 | [diff] [blame] | 23 | sdbusplus::xyz::openbmc_project::Software::server::Activation, |
| 24 | sdbusplus::org::openbmc::server::Associations>; |
Adriana Kobylak | ea9626f | 2017-04-05 15:37:40 -0500 | [diff] [blame] | 25 | using ActivationBlocksTransitionInherit = sdbusplus::server::object::object< |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 26 | sdbusplus::xyz::openbmc_project::Software::server:: |
| 27 | ActivationBlocksTransition>; |
Saqib Khan | 942df8a | 2017-06-01 14:09:27 -0500 | [diff] [blame] | 28 | using RedundancyPriorityInherit = sdbusplus::server::object::object< |
| 29 | sdbusplus::xyz::openbmc_project::Software::server::RedundancyPriority>; |
Michael Tritz | 1793b64 | 2017-06-28 18:35:58 -0500 | [diff] [blame] | 30 | using ActivationProgressInherit = sdbusplus::server::object::object< |
| 31 | sdbusplus::xyz::openbmc_project::Software::server::ActivationProgress>; |
Saqib Khan | 942df8a | 2017-06-01 14:09:27 -0500 | [diff] [blame] | 32 | |
Michael Tritz | 9d25b60 | 2017-06-14 14:41:43 -0500 | [diff] [blame] | 33 | namespace sdbusRule = sdbusplus::bus::match::rules; |
| 34 | |
Saqib Khan | 81bac88 | 2017-06-08 12:17:01 -0500 | [diff] [blame] | 35 | class ItemUpdater; |
| 36 | class Activation; |
| 37 | class RedundancyPriority; |
| 38 | |
Saqib Khan | 942df8a | 2017-06-01 14:09:27 -0500 | [diff] [blame] | 39 | /** @class RedundancyPriority |
| 40 | * @brief OpenBMC RedundancyPriority implementation |
| 41 | * @details A concrete implementation for |
| 42 | * xyz.openbmc_project.Software.RedundancyPriority DBus API. |
| 43 | */ |
| 44 | class RedundancyPriority : public RedundancyPriorityInherit |
| 45 | { |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 46 | public: |
| 47 | /** @brief Constructs RedundancyPriority. |
| 48 | * |
| 49 | * @param[in] bus - The Dbus bus object |
| 50 | * @param[in] path - The Dbus object path |
| 51 | * @param[in] parent - Parent object. |
| 52 | * @param[in] value - The redundancyPriority value |
| 53 | */ |
| 54 | RedundancyPriority(sdbusplus::bus::bus& bus, const std::string& path, |
| 55 | Activation& parent, uint8_t value) : |
| 56 | RedundancyPriorityInherit(bus, path.c_str(), true), |
| 57 | parent(parent), bus(bus), path(path) |
| 58 | { |
| 59 | // Set Property |
| 60 | priority(value); |
| 61 | std::vector<std::string> interfaces({interface}); |
| 62 | bus.emit_interfaces_added(path.c_str(), interfaces); |
| 63 | } |
Adriana Kobylak | a8eda56 | 2017-07-17 15:24:29 -0500 | [diff] [blame] | 64 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 65 | ~RedundancyPriority() |
| 66 | { |
| 67 | std::vector<std::string> interfaces({interface}); |
| 68 | bus.emit_interfaces_removed(path.c_str(), interfaces); |
| 69 | } |
Saqib Khan | 2021b4c | 2017-06-07 14:37:36 -0500 | [diff] [blame] | 70 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 71 | /** @brief Overloaded Priority property set function |
| 72 | * |
| 73 | * @param[in] value - uint8_t |
| 74 | * |
| 75 | * @return Success or exception thrown |
| 76 | */ |
| 77 | uint8_t priority(uint8_t value) override; |
Saqib Khan | 81bac88 | 2017-06-08 12:17:01 -0500 | [diff] [blame] | 78 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 79 | /** @brief Priority property get function |
| 80 | * |
| 81 | * @returns uint8_t - The Priority value |
| 82 | */ |
| 83 | using RedundancyPriorityInherit::priority; |
Saqib Khan | 81bac88 | 2017-06-08 12:17:01 -0500 | [diff] [blame] | 84 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 85 | /** @brief Parent Object. */ |
| 86 | Activation& parent; |
Adriana Kobylak | a8eda56 | 2017-07-17 15:24:29 -0500 | [diff] [blame] | 87 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 88 | private: |
| 89 | // TODO Remove once openbmc/openbmc#1975 is resolved |
| 90 | static constexpr auto interface = |
| 91 | "xyz.openbmc_project.Software.RedundancyPriority"; |
| 92 | sdbusplus::bus::bus& bus; |
| 93 | std::string path; |
Saqib Khan | 942df8a | 2017-06-01 14:09:27 -0500 | [diff] [blame] | 94 | }; |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 95 | |
Adriana Kobylak | 99c8c0e | 2017-04-17 13:39:11 -0500 | [diff] [blame] | 96 | /** @class ActivationBlocksTransition |
| 97 | * @brief OpenBMC ActivationBlocksTransition implementation. |
| 98 | * @details A concrete implementation for |
| 99 | * xyz.openbmc_project.Software.ActivationBlocksTransition DBus API. |
| 100 | */ |
| 101 | class ActivationBlocksTransition : public ActivationBlocksTransitionInherit |
| 102 | { |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 103 | public: |
| 104 | /** @brief Constructs ActivationBlocksTransition. |
| 105 | * |
| 106 | * @param[in] bus - The Dbus bus object |
| 107 | * @param[in] path - The Dbus object path |
| 108 | */ |
| 109 | ActivationBlocksTransition(sdbusplus::bus::bus& bus, |
| 110 | const std::string& path) : |
| 111 | ActivationBlocksTransitionInherit(bus, path.c_str(), true), |
| 112 | bus(bus), path(path) |
| 113 | { |
| 114 | std::vector<std::string> interfaces({interface}); |
| 115 | bus.emit_interfaces_added(path.c_str(), interfaces); |
| 116 | } |
Adriana Kobylak | a8eda56 | 2017-07-17 15:24:29 -0500 | [diff] [blame] | 117 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 118 | ~ActivationBlocksTransition() |
| 119 | { |
| 120 | std::vector<std::string> interfaces({interface}); |
| 121 | bus.emit_interfaces_removed(path.c_str(), interfaces); |
| 122 | } |
Adriana Kobylak | a8eda56 | 2017-07-17 15:24:29 -0500 | [diff] [blame] | 123 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 124 | private: |
| 125 | // TODO Remove once openbmc/openbmc#1975 is resolved |
| 126 | static constexpr auto interface = |
| 127 | "xyz.openbmc_project.Software.ActivationBlocksTransition"; |
| 128 | sdbusplus::bus::bus& bus; |
| 129 | std::string path; |
Adriana Kobylak | 99c8c0e | 2017-04-17 13:39:11 -0500 | [diff] [blame] | 130 | }; |
| 131 | |
Michael Tritz | 1793b64 | 2017-06-28 18:35:58 -0500 | [diff] [blame] | 132 | class ActivationProgress : public ActivationProgressInherit |
| 133 | { |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 134 | public: |
| 135 | /** @brief Constructs ActivationProgress. |
| 136 | * |
| 137 | * @param[in] bus - The Dbus bus object |
| 138 | * @param[in] path - The Dbus object path |
| 139 | */ |
| 140 | ActivationProgress(sdbusplus::bus::bus& bus, const std::string& path) : |
| 141 | ActivationProgressInherit(bus, path.c_str(), true), bus(bus), path(path) |
| 142 | { |
| 143 | progress(0); |
| 144 | std::vector<std::string> interfaces({interface}); |
| 145 | bus.emit_interfaces_added(path.c_str(), interfaces); |
| 146 | } |
Adriana Kobylak | a8eda56 | 2017-07-17 15:24:29 -0500 | [diff] [blame] | 147 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 148 | ~ActivationProgress() |
| 149 | { |
| 150 | std::vector<std::string> interfaces({interface}); |
| 151 | bus.emit_interfaces_removed(path.c_str(), interfaces); |
| 152 | } |
Adriana Kobylak | a8eda56 | 2017-07-17 15:24:29 -0500 | [diff] [blame] | 153 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 154 | private: |
| 155 | // TODO Remove once openbmc/openbmc#1975 is resolved |
| 156 | static constexpr auto interface = |
| 157 | "xyz.openbmc_project.Software.ActivationProgress"; |
| 158 | sdbusplus::bus::bus& bus; |
| 159 | std::string path; |
Michael Tritz | 1793b64 | 2017-06-28 18:35:58 -0500 | [diff] [blame] | 160 | }; |
| 161 | |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 162 | /** @class Activation |
| 163 | * @brief OpenBMC activation software management implementation. |
| 164 | * @details A concrete implementation for |
| 165 | * xyz.openbmc_project.Software.Activation DBus API. |
| 166 | */ |
| 167 | class Activation : public ActivationInherit |
| 168 | { |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 169 | public: |
| 170 | /** @brief Constructs Activation Software Manager |
| 171 | * |
| 172 | * @param[in] bus - The Dbus bus object |
| 173 | * @param[in] path - The Dbus object path |
| 174 | * @param[in] parent - Parent object. |
| 175 | * @param[in] versionId - The software version id |
| 176 | * @param[in] extVersion - The extended version |
| 177 | * @param[in] activationStatus - The status of Activation |
| 178 | * @param[in] assocs - Association objects |
| 179 | */ |
| 180 | Activation(sdbusplus::bus::bus& bus, const std::string& path, |
| 181 | ItemUpdater& parent, std::string& versionId, |
| 182 | std::string& extVersion, |
| 183 | sdbusplus::xyz::openbmc_project::Software::server::Activation:: |
| 184 | Activations activationStatus, |
| 185 | AssociationList& assocs) : |
| 186 | ActivationInherit(bus, path.c_str(), true), |
| 187 | bus(bus), path(path), parent(parent), versionId(versionId), |
| 188 | systemdSignals( |
| 189 | bus, |
| 190 | sdbusRule::type::signal() + sdbusRule::member("JobRemoved") + |
| 191 | sdbusRule::path("/org/freedesktop/systemd1") + |
| 192 | sdbusRule::interface("org.freedesktop.systemd1.Manager"), |
| 193 | std::bind(std::mem_fn(&Activation::unitStateChange), this, |
| 194 | std::placeholders::_1)) |
| 195 | { |
| 196 | // Enable systemd signals |
| 197 | subscribeToSystemdSignals(); |
| 198 | // Set Properties. |
| 199 | extendedVersion(extVersion); |
| 200 | activation(activationStatus); |
| 201 | associations(assocs); |
Gunnar Mills | 3edb84b | 2017-08-18 15:13:15 -0500 | [diff] [blame] | 202 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 203 | // Emit deferred signal. |
| 204 | emit_object_added(); |
| 205 | } |
Adriana Kobylak | befe5ce | 2017-04-05 15:57:44 -0500 | [diff] [blame] | 206 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 207 | /** @brief Activation property get function |
| 208 | * |
| 209 | * @returns One of Activation::Activations |
| 210 | */ |
| 211 | using ActivationInherit::activation; |
Saqib Khan | 2cbfa03 | 2017-08-17 14:52:37 -0500 | [diff] [blame] | 212 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 213 | /** @brief Overloaded Activation property setter function |
| 214 | * |
| 215 | * @param[in] value - One of Activation::Activations |
| 216 | * |
| 217 | * @return Success or exception thrown |
| 218 | */ |
| 219 | Activations activation(Activations value) override; |
Adriana Kobylak | befe5ce | 2017-04-05 15:57:44 -0500 | [diff] [blame] | 220 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 221 | /** @brief Overloaded requestedActivation property setter function |
| 222 | * |
| 223 | * @param[in] value - One of Activation::RequestedActivations |
| 224 | * |
| 225 | * @return Success or exception thrown |
| 226 | */ |
| 227 | RequestedActivations |
| 228 | requestedActivation(RequestedActivations value) override; |
Adriana Kobylak | befe5ce | 2017-04-05 15:57:44 -0500 | [diff] [blame] | 229 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 230 | /** @brief Check if systemd state change is relevant to this object |
| 231 | * |
| 232 | * Instance specific interface to handle the detected systemd state |
| 233 | * change |
| 234 | * |
| 235 | * @param[in] msg - Data associated with subscribed signal |
| 236 | * |
| 237 | */ |
| 238 | void unitStateChange(sdbusplus::message::message& msg); |
Michael Tritz | 9d25b60 | 2017-06-14 14:41:43 -0500 | [diff] [blame] | 239 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 240 | /** |
| 241 | * @brief subscribe to the systemd signals |
| 242 | * |
| 243 | * This object needs to capture when it's systemd targets complete |
| 244 | * so it can keep it's state updated |
| 245 | * |
| 246 | **/ |
| 247 | void subscribeToSystemdSignals(); |
Michael Tritz | 9d25b60 | 2017-06-14 14:41:43 -0500 | [diff] [blame] | 248 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 249 | /** |
| 250 | * @brief unsubscribe from the systemd signals |
| 251 | * |
| 252 | * Once the activation process has completed successfully, we can |
| 253 | * safely unsubscribe from systemd signals. |
| 254 | * |
| 255 | **/ |
| 256 | void unsubscribeFromSystemdSignals(); |
Michael Tritz | 1cb127f | 2017-07-26 15:40:38 -0500 | [diff] [blame] | 257 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 258 | /** @brief Persistent sdbusplus DBus bus connection */ |
| 259 | sdbusplus::bus::bus& bus; |
Adriana Kobylak | 99c8c0e | 2017-04-17 13:39:11 -0500 | [diff] [blame] | 260 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 261 | /** @brief Persistent DBus object path */ |
| 262 | std::string path; |
Adriana Kobylak | 99c8c0e | 2017-04-17 13:39:11 -0500 | [diff] [blame] | 263 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 264 | /** @brief Parent Object. */ |
| 265 | ItemUpdater& parent; |
Saqib Khan | 81bac88 | 2017-06-08 12:17:01 -0500 | [diff] [blame] | 266 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 267 | /** @brief Version id */ |
| 268 | std::string versionId; |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 269 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 270 | /** @brief Persistent ActivationBlocksTransition dbus object */ |
| 271 | std::unique_ptr<ActivationBlocksTransition> activationBlocksTransition; |
Saqib Khan | 942df8a | 2017-06-01 14:09:27 -0500 | [diff] [blame] | 272 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 273 | /** @brief Persistent ActivationProgress dbus object */ |
| 274 | std::unique_ptr<ActivationProgress> activationProgress; |
Michael Tritz | 1793b64 | 2017-06-28 18:35:58 -0500 | [diff] [blame] | 275 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 276 | /** @brief Persistent RedundancyPriority dbus object */ |
| 277 | std::unique_ptr<RedundancyPriority> redundancyPriority; |
Michael Tritz | 9d25b60 | 2017-06-14 14:41:43 -0500 | [diff] [blame] | 278 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 279 | /** @brief Used to subscribe to dbus systemd signals **/ |
| 280 | sdbusplus::bus::match_t systemdSignals; |
Michael Tritz | 9d25b60 | 2017-06-14 14:41:43 -0500 | [diff] [blame] | 281 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 282 | /** @brief Tracks whether the read-only & read-write volumes have been |
| 283 | *created as part of the activation process. **/ |
| 284 | bool ubiVolumesCreated = false; |
Leonel Gonzalez | 9c8adfa | 2017-07-12 11:08:40 -0500 | [diff] [blame] | 285 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 286 | /** @brief activation status property get function |
| 287 | * |
| 288 | * @returns Activations - The activation value |
| 289 | */ |
| 290 | using ActivationInherit::activation; |
Leonel Gonzalez | 9c8adfa | 2017-07-12 11:08:40 -0500 | [diff] [blame] | 291 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 292 | private: |
| 293 | /** |
| 294 | * @brief Deletes the version from Image Manager and the |
| 295 | * untar image from image upload dir. |
| 296 | */ |
| 297 | void deleteImageManagerObject(); |
Saqib Khan | 7f80e0b | 2017-10-22 11:29:07 -0500 | [diff] [blame] | 298 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 299 | /** @brief Member function for clarity & brevity at activation start */ |
| 300 | void startActivation(); |
Saqib Khan | 7f80e0b | 2017-10-22 11:29:07 -0500 | [diff] [blame] | 301 | |
Adriana Kobylak | 70dcb63 | 2018-02-27 15:46:52 -0600 | [diff] [blame] | 302 | /** @brief Member function for clarity & brevity at activation end */ |
| 303 | void finishActivation(); |
Jayanth Othayoth | 11271fb | 2018-03-29 10:25:50 -0500 | [diff] [blame] | 304 | |
| 305 | #ifdef WANT_SIGNATURE_VERIFY |
| 306 | /** |
| 307 | * @brief Wrapper function for the signature verify function. |
| 308 | * Signature class verify function used for validating |
| 309 | * signed image. Also added additional logic to continue |
| 310 | * update process in lab environment by checking the |
| 311 | * fieldModeEnabled property. |
| 312 | * |
| 313 | * @return true if successful signature validation or field |
| 314 | * mode is disabled. |
| 315 | * false for unsuccessful signature validation or |
| 316 | * any internal failure during the mapper call. |
| 317 | */ |
| 318 | inline bool validateSignature(); |
| 319 | |
| 320 | /** |
| 321 | * @brief Gets the fieldModeEnabled property value. |
| 322 | * |
| 323 | * @return fieldModeEnabled property value |
| 324 | * @error InternalFailure exception thrown |
| 325 | */ |
| 326 | bool fieldModeEnabled(); |
| 327 | |
| 328 | /** |
| 329 | * @brief Gets the D-Bus Service name for the input D-Bus path |
| 330 | * |
| 331 | * @param[in] bus - Bus handler |
| 332 | * @param[in] path - Object Path |
| 333 | * @param[in] intf - Interface |
| 334 | * |
| 335 | * @return Service name |
| 336 | * @error InternalFailure exception thrown |
| 337 | */ |
| 338 | std::string getService(sdbusplus::bus::bus& bus, const std::string& path, |
| 339 | const std::string& intf); |
| 340 | #endif |
Adriana Kobylak | ea9626f | 2017-04-05 15:37:40 -0500 | [diff] [blame] | 341 | }; |
| 342 | |
Adriana Kobylak | befe5ce | 2017-04-05 15:57:44 -0500 | [diff] [blame] | 343 | } // namespace updater |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 344 | } // namespace software |
| 345 | } // namespace openpower |