-
Notifications
You must be signed in to change notification settings - Fork 23
/
extensions.cpp
45 lines (37 loc) · 1.03 KB
/
extensions.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "extensions.hpp"
namespace phosphor
{
namespace logging
{
StartupFunctions& Extensions::getStartupFunctions()
{
static StartupFunctions startupFunctions{};
return startupFunctions;
}
CreateFunctions& Extensions::getCreateFunctions()
{
static CreateFunctions createFunctions{};
return createFunctions;
}
DeleteFunctions& Extensions::getDeleteFunctions()
{
static DeleteFunctions deleteFunctions{};
return deleteFunctions;
}
DeleteProhibitedFunctions& Extensions::getDeleteProhibitedFunctions()
{
static DeleteProhibitedFunctions deleteProhibitedFunctions{};
return deleteProhibitedFunctions;
}
LogIDsWithHwIsolationFunctions& Extensions::getLogIDWithHwIsolationFunctions()
{
static LogIDsWithHwIsolationFunctions logIDWithHwIsolationFunctions{};
return logIDWithHwIsolationFunctions;
}
Extensions::DefaultErrorCaps& Extensions::getDefaultErrorCaps()
{
static DefaultErrorCaps defaultErrorCaps = DefaultErrorCaps::enable;
return defaultErrorCaps;
}
} // namespace logging
} // namespace phosphor