aboutsummaryrefslogtreecommitdiff
path: root/backend/print.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/print.h')
-rw-r--r--backend/print.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/backend/print.h b/backend/print.h
new file mode 100644
index 0000000..8fa0501
--- /dev/null
+++ b/backend/print.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <stdio.h>
+
+#include "String.h"
+
+void lprtf(const char * fmt, ...);
+
+class SessionLog {
+public:
+ static SessionLog & get();
+
+private:
+ SessionLog();
+ virtual ~SessionLog();
+
+public:
+ virtual void append(const String & str) const;
+ virtual void append(const char * str) const;
+ virtual void append(const char * buf, size_t buf_size) const;
+
+private:
+ FILE * file = nullptr;
+ static constexpr const bool enable = false;
+};
+