Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 1 | #include "config.h" |
Adriana Kobylak | 5ed9b2d | 2018-09-06 13:15:34 -0500 | [diff] [blame] | 2 | |
Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 3 | #include <sdbusplus/server.hpp> |
Adriana Kobylak | 58aa750 | 2020-06-08 11:12:11 -0500 | [diff] [blame] | 4 | |
George Liu | 0a06e97 | 2020-12-17 09:17:04 +0800 | [diff] [blame^] | 5 | #include <fstream> |
Adriana Kobylak | 58aa750 | 2020-06-08 11:12:11 -0500 | [diff] [blame] | 6 | #include <map> |
Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 7 | #include <string> |
Adriana Kobylak | 5ed9b2d | 2018-09-06 13:15:34 -0500 | [diff] [blame] | 8 | |
Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 9 | namespace utils |
| 10 | { |
Adriana Kobylak | 5ed9b2d | 2018-09-06 13:15:34 -0500 | [diff] [blame] | 11 | |
Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 12 | /** |
| 13 | * @brief Get the bus service |
| 14 | * |
| 15 | * @return the bus service as a string |
| 16 | **/ |
| 17 | std::string getService(sdbusplus::bus::bus& bus, const std::string& path, |
| 18 | const std::string& interface); |
Adriana Kobylak | 5ed9b2d | 2018-09-06 13:15:34 -0500 | [diff] [blame] | 19 | |
George Liu | 0a06e97 | 2020-12-17 09:17:04 +0800 | [diff] [blame^] | 20 | /** |
| 21 | * @brief Merge more files |
| 22 | * |
| 23 | * @param[in] srcFiles - source files |
| 24 | * @param[out] dstFile - destination file |
| 25 | * @return |
| 26 | **/ |
| 27 | void mergeFiles(std::vector<std::string>& srcFiles, std::string& dstFile); |
Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 28 | } // namespace utils |