aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-08-19 21:52:32 +0000
committerFuwn <[email protected]>2021-08-19 21:52:32 +0000
commitb732f6806fec13de081f5645b5ffc1c3a4ae96ed (patch)
tree6552eda352a49e0e627874941e1f18968f721631 /include
parentchore(readme): remove tray support item (diff)
downloadsoyuz-b732f6806fec13de081f5645b5ffc1c3a4ae96ed.tar.xz
soyuz-b732f6806fec13de081f5645b5ffc1c3a4ae96ed.zip
feat(soyuz): log to file
Diffstat (limited to 'include')
-rw-r--r--include/soyuz/library.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/soyuz/library.hh b/include/soyuz/library.hh
index ae7ce13..db88870 100644
--- a/include/soyuz/library.hh
+++ b/include/soyuz/library.hh
@@ -6,6 +6,7 @@
#pragma once
+#include <string>
#include <Windows.h>
#define NT_SUCCESS(status) (status >= 0)
@@ -13,9 +14,21 @@
namespace soyuz {
+// enum log_level {
+// low, // blue
+// medium, // orange
+// high, // red
+// };
+
static auto enum_windows_proc(HWND hwnd, LPARAM lparam) -> BOOL;
auto find_lunar() -> DWORD;
auto delete_handle(DWORD pid) -> int;
+auto write_log_file(const std::string &message) -> void;
+auto init_log_file() -> void;
+auto close_log_file() -> void;
+auto exit(int exit_code) -> void;
+// https://stackoverflow.com/a/10467633/14452787
+auto current_date_time() -> std::string;
}