Matt Spinler | 99c2b40 | 2019-05-23 14:29:16 -0500 | [diff] [blame] | 1 | #include "extensions.hpp" |
| 2 | |
| 3 | namespace phosphor |
| 4 | { |
| 5 | namespace logging |
| 6 | { |
| 7 | |
William A. Kennington III | aeccabc | 2021-05-19 16:39:10 -0700 | [diff] [blame] | 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 | |
harsh-agarwal1 | d763db3 | 2024-09-03 09:18:50 -0500 | [diff] [blame^] | 32 | LogIDsWithHwIsolationFunctions& Extensions::getLogIDWithHwIsolationFunctions() |
| 33 | { |
| 34 | static LogIDsWithHwIsolationFunctions logIDWithHwIsolationFunctions{}; |
| 35 | return logIDWithHwIsolationFunctions; |
| 36 | } |
| 37 | |
William A. Kennington III | aeccabc | 2021-05-19 16:39:10 -0700 | [diff] [blame] | 38 | Extensions::DefaultErrorCaps& Extensions::getDefaultErrorCaps() |
| 39 | { |
| 40 | static DefaultErrorCaps defaultErrorCaps = DefaultErrorCaps::enable; |
| 41 | return defaultErrorCaps; |
| 42 | } |
Matt Spinler | 99c2b40 | 2019-05-23 14:29:16 -0500 | [diff] [blame] | 43 | |
| 44 | } // namespace logging |
| 45 | } // namespace phosphor |