Patrick Venture | 59a6b1f | 2018-08-29 11:41:01 -0700 | [diff] [blame] | 1 | #include "config.h" |
2 | |||||
3 | #include <phosphor-logging/sdjournal.hpp> | ||||
4 | |||||
5 | namespace phosphor | ||||
6 | { | ||||
7 | namespace logging | ||||
8 | { | ||||
9 | |||||
10 | SdJournalHandler sdjournal_impl; | ||||
11 | SdJournalHandler* sdjournal_ptr = &sdjournal_impl; | ||||
12 | |||||
13 | SdJournalHandler* SwapJouralHandler(SdJournalHandler* with) | ||||
14 | { | ||||
15 | SdJournalHandler* curr = sdjournal_ptr; | ||||
16 | sdjournal_ptr = with; | ||||
17 | return curr; | ||||
18 | } | ||||
19 | |||||
20 | } // namespace logging | ||||
21 | } // namespace phosphor |