diff options
author | saturneric <[email protected]> | 2023-12-13 10:01:06 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-13 10:01:06 +0000 |
commit | 42264ed0d7a3c91fbe9f307984964ffc9e5fe65c (patch) | |
tree | a3ddecbd6ad723e42d68cc2c5aed7a88c4e242a3 /src/init.h | |
parent | feat: move test to src and add submodule googletest (diff) | |
download | GpgFrontend-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.h | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -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 |