blob: b8ccfe83c335aa30eaa8c064d47f7149167827c3 [file] [log] [blame]
Matt Spinlerdf13bdb2019-07-10 16:54:13 -05001#include "config.h"
2
3#include "paths.hpp"
4
5#include <filesystem>
6
7namespace openpower
8{
9namespace pels
10{
11
12namespace fs = std::filesystem;
13
14fs::path getPELIDFile()
15{
16 fs::path logIDPath{EXTENSION_PERSIST_DIR};
17 logIDPath /= fs::path{"pels"} / fs::path{"pelID"};
18 return logIDPath;
19}
20
Matt Spinler89fa0822019-07-17 13:54:30 -050021fs::path getPELRepoPath()
22{
23 std::filesystem::path repoPath{EXTENSION_PERSIST_DIR};
24 repoPath /= "pels";
25 return repoPath;
26}
27
Matt Spinler367144c2019-09-19 15:33:52 -050028fs::path getMessageRegistryPath()
29{
30 return std::filesystem::path{"/usr/share/phosphor-logging/pels"};
31}
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050032
Matt Spinler367144c2019-09-19 15:33:52 -050033} // namespace pels
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050034} // namespace openpower