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