blob: 600073aaf83dc461fdf6a4d148fadfada2ee3073 [file] [log] [blame]
Matt Spinlerdf13bdb2019-07-10 16:54:13 -05001#pragma once
2#include <filesystem>
3
4namespace openpower
5{
6namespace pels
7{
8
9/**
10 * @brief Returns the path to the PEL ID file
11 */
12std::filesystem::path getPELIDFile();
13
Matt Spinler89fa0822019-07-17 13:54:30 -050014/**
15 * @brief Returns the path to the PEL repository
16 */
17std::filesystem::path getPELRepoPath();
18
Matt Spinler367144c2019-09-19 15:33:52 -050019/**
Matt Spinler0d804ef2020-05-12 16:16:26 -050020 * @brief Returns the path to the read only data directory
Matt Spinler367144c2019-09-19 15:33:52 -050021 */
Matt Spinler0d804ef2020-05-12 16:16:26 -050022std::filesystem::path getPELReadOnlyDataPath();
Matt Spinler8d5f3a22020-07-07 10:30:33 -050023
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 */
32size_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 */
42size_t getMaxNumPELs();
43
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050044} // namespace pels
45} // namespace openpower