blob: e252cb39cdeff140ffdc2f7286a7ea193c9c1cd4 [file] [log] [blame]
Deepak Kodihallic6e8fb52019-05-02 08:35:31 -05001#include "pdr.hpp"
2
3namespace pldm
4{
5
6namespace responder
7{
8
9namespace pdr
10{
11
12Repo& get(const std::string& dir)
13{
14 using namespace internal;
15 static IndexedRepo repo;
16 if (repo.empty())
17 {
18 generate(dir, repo);
19 }
20
21 return repo;
22}
23
24} // namespace pdr
25} // namespace responder
26} // namespace pldm