aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-13 10:01:06 +0000
committersaturneric <[email protected]>2023-12-13 10:01:06 +0000
commit42264ed0d7a3c91fbe9f307984964ffc9e5fe65c (patch)
treea3ddecbd6ad723e42d68cc2c5aed7a88c4e242a3 /src/init.h
parentfeat: move test to src and add submodule googletest (diff)
downloadGpgFrontend-42264ed0d7a3c91fbe9f307984964ffc9e5fe65c.tar.gz
GpgFrontend-42264ed0d7a3c91fbe9f307984964ffc9e5fe65c.zip
refactor: improve the structure of main,core and test module
Diffstat (limited to 'src/init.h')
-rw-r--r--src/init.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/init.h b/src/init.h
index 32b4f490..50442b43 100644
--- a/src/init.h
+++ b/src/init.h
@@ -28,7 +28,9 @@
#pragma once
-struct InitArgs;
+#include "GpgFrontendContext.h"
+
+namespace GpgFrontend {
/**
* @brief handle the signal SIGSEGV
@@ -38,26 +40,29 @@ struct InitArgs;
void HandleSignal(int sig);
/**
- * @brief processes before exit the program.
- *
- */
-void BeforeExit();
-
-/**
* @brief
*
* @param args
*/
-void InitLoggingSystem(InitArgs args);
+void InitLoggingSystem(const GFCxtSPtr&);
/**
* @brief initialize the logging system.
*
*/
-void ShutdownLoggingSystem();
+void ShutdownLoggingSystem(const GFCxtSPtr&);
/**
* @brief init global PATH env
*
*/
void InitGlobalPathEnv();
+
+/**
+ * @brief
+ *
+ * @param args
+ */
+void InitGlobalBasicalEnv(const GFCxtWPtr&);
+
+} // namespace GpgFrontend \ No newline at end of file