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