Matt Spinler | df13bdb | 2019-07-10 16:54:13 -0500 | [diff] [blame] | 1 | #pragma once |
Patrick Williams | fa2d962 | 2024-09-30 16:25:43 -0400 | [diff] [blame^] | 2 | #include "../../paths.hpp" |
| 3 | |
Matt Spinler | df13bdb | 2019-07-10 16:54:13 -0500 | [diff] [blame] | 4 | #include <filesystem> |
| 5 | |
| 6 | namespace openpower |
| 7 | { |
| 8 | namespace pels |
| 9 | { |
| 10 | |
| 11 | /** |
| 12 | * @brief Returns the path to the PEL ID file |
| 13 | */ |
| 14 | std::filesystem::path getPELIDFile(); |
| 15 | |
Matt Spinler | 89fa082 | 2019-07-17 13:54:30 -0500 | [diff] [blame] | 16 | /** |
| 17 | * @brief Returns the path to the PEL repository |
| 18 | */ |
| 19 | std::filesystem::path getPELRepoPath(); |
| 20 | |
Matt Spinler | 367144c | 2019-09-19 15:33:52 -0500 | [diff] [blame] | 21 | /** |
Matt Spinler | 0d804ef | 2020-05-12 16:16:26 -0500 | [diff] [blame] | 22 | * @brief Returns the path to the read only data directory |
Matt Spinler | 367144c | 2019-09-19 15:33:52 -0500 | [diff] [blame] | 23 | */ |
Matt Spinler | 0d804ef | 2020-05-12 16:16:26 -0500 | [diff] [blame] | 24 | std::filesystem::path getPELReadOnlyDataPath(); |
Matt Spinler | 8d5f3a2 | 2020-07-07 10:30:33 -0500 | [diff] [blame] | 25 | |
| 26 | /** |
| 27 | * @brief Returns the maximum size in bytes allocated to store PELs. |
| 28 | * |
| 29 | * This is still in paths.c/hpp even though it doesn't return a path |
| 30 | * because this file is easy to override when testing. |
| 31 | * |
| 32 | * @return size_t The maximum size in bytes to use for storing PELs. |
| 33 | */ |
| 34 | size_t getPELRepoSize(); |
| 35 | |
| 36 | /** |
| 37 | * @brief Returns the maximum number of PELs allowed |
| 38 | * |
| 39 | * This is still in paths.c/hpp even though it doesn't return a path |
| 40 | * because this file is easy to override when testing. |
| 41 | * |
| 42 | * @return size_t The maximum number of PELs to allow in the repository. |
| 43 | */ |
| 44 | size_t getMaxNumPELs(); |
| 45 | |
Matt Spinler | df13bdb | 2019-07-10 16:54:13 -0500 | [diff] [blame] | 46 | } // namespace pels |
| 47 | } // namespace openpower |