Deepak Kodihalli | c6e8fb5 | 2019-05-02 08:35:31 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | |
Deepak Kodihalli | d078296 | 2019-05-07 16:36:47 +0530 | [diff] [blame] | 5 | #include <string> |
| 6 | #include <vector> |
| 7 | |
Deepak Kodihalli | c6e8fb5 | 2019-05-02 08:35:31 -0500 | [diff] [blame] | 8 | namespace pldm |
| 9 | { |
| 10 | |
| 11 | namespace responder |
| 12 | { |
| 13 | |
| 14 | namespace effecter |
| 15 | { |
| 16 | |
| 17 | using Id = uint16_t; |
| 18 | |
| 19 | /** @brief Get next available id to assign to an effecter |
| 20 | * |
| 21 | * @return uint16_t - effecter id |
| 22 | */ |
| 23 | Id nextId(); |
| 24 | |
Deepak Kodihalli | d078296 | 2019-05-07 16:36:47 +0530 | [diff] [blame] | 25 | namespace dbus_mapping |
| 26 | { |
| 27 | using Paths = std::vector<std::string>; |
| 28 | |
| 29 | /** @brief Add an effecter id -> D-Bus objects mapping |
| 30 | * |
| 31 | * @param[in] id - effecter id |
| 32 | * @param[in] paths - list of D-Bus object paths |
| 33 | */ |
| 34 | void add(Id id, Paths&& paths); |
| 35 | |
| 36 | /** @brief Retrieve an effecter id -> D-Bus objects mapping |
| 37 | * |
| 38 | * @param[in] id - effecter id |
| 39 | * |
| 40 | * @return Paths - list of D-Bus object paths |
| 41 | */ |
| 42 | Paths get(Id id); |
| 43 | } // namespace dbus_mapping |
| 44 | |
Deepak Kodihalli | c6e8fb5 | 2019-05-02 08:35:31 -0500 | [diff] [blame] | 45 | } // namespace effecter |
| 46 | } // namespace responder |
| 47 | } // namespace pldm |