1 #include "extensions.hpp" 2 3 namespace phosphor 4 { 5 namespace logging 6 { 7 8 StartupFunctions& Extensions::getStartupFunctions() 9 { 10 static StartupFunctions startupFunctions{}; 11 return startupFunctions; 12 } 13 14 CreateFunctions& Extensions::getCreateFunctions() 15 { 16 static CreateFunctions createFunctions{}; 17 return createFunctions; 18 } 19 20 DeleteFunctions& Extensions::getDeleteFunctions() 21 { 22 static DeleteFunctions deleteFunctions{}; 23 return deleteFunctions; 24 } 25 26 DeleteProhibitedFunctions& Extensions::getDeleteProhibitedFunctions() 27 { 28 static DeleteProhibitedFunctions deleteProhibitedFunctions{}; 29 return deleteProhibitedFunctions; 30 } 31 32 Extensions::DefaultErrorCaps& Extensions::getDefaultErrorCaps() 33 { 34 static DefaultErrorCaps defaultErrorCaps = DefaultErrorCaps::enable; 35 return defaultErrorCaps; 36 } 37 38 } // namespace logging 39 } // namespace phosphor 40