Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame^] | 1 | #include <string> |
| 2 | #include "item_updater.hpp" |
| 3 | #include "config.h" |
| 4 | |
| 5 | namespace phosphor |
| 6 | { |
| 7 | namespace software |
| 8 | { |
| 9 | namespace updater |
| 10 | { |
| 11 | |
| 12 | int ItemUpdater::createActivation(sd_bus_message* msg, |
| 13 | void* userData, |
| 14 | sd_bus_error* retErr) |
| 15 | { |
| 16 | auto versionId = 1; |
| 17 | auto* updater = static_cast<ItemUpdater*>(userData); |
| 18 | updater->activations.insert(std::make_pair( |
| 19 | std::to_string(versionId), |
| 20 | std::make_unique<Activation>( |
| 21 | updater->bus, |
| 22 | SOFTWARE_OBJPATH))); |
| 23 | return 0; |
| 24 | } |
| 25 | |
| 26 | } // namespace updater |
| 27 | } // namespace software |
| 28 | } // namespace phosphor |