forked from ibm-openbmc/phosphor-logging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extensions.cpp
39 lines (32 loc) · 858 Bytes
/
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
#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;
}
Extensions::DefaultErrorCaps& Extensions::getDefaultErrorCaps()
{
static DefaultErrorCaps defaultErrorCaps = DefaultErrorCaps::enable;
return defaultErrorCaps;
}
} // namespace logging
} // namespace phosphor