summaryrefslogtreecommitdiffstats
path: root/sdjournal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sdjournal.cpp')
-rw-r--r--sdjournal.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/sdjournal.cpp b/sdjournal.cpp
new file mode 100644
index 0000000..77ced46
--- /dev/null
+++ b/sdjournal.cpp
@@ -0,0 +1,21 @@
+#include "config.h"
+
+#include <phosphor-logging/sdjournal.hpp>
+
+namespace phosphor
+{
+namespace logging
+{
+
+SdJournalHandler sdjournal_impl;
+SdJournalHandler* sdjournal_ptr = &sdjournal_impl;
+
+SdJournalHandler* SwapJouralHandler(SdJournalHandler* with)
+{
+ SdJournalHandler* curr = sdjournal_ptr;
+ sdjournal_ptr = with;
+ return curr;
+}
+
+} // namespace logging
+} // namespace phosphor
OpenPOWER on IntegriCloud