aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgCoreInit.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-22 22:06:30 +0000
committersaturneric <[email protected]>2024-11-22 22:06:30 +0000
commite16e15db09d89a997db73e313b966f95e6c59f56 (patch)
tree4f6be7375b983eda33b5faa37b9c7a3af0a57ed6 /src/core/GpgCoreInit.h
parentfix: correct the path to the executable of app image mode (diff)
downloadGpgFrontend-e16e15db09d89a997db73e313b966f95e6c59f56.tar.gz
GpgFrontend-e16e15db09d89a997db73e313b966f95e6c59f56.zip
feat: rewrite core init processes and add env option
Diffstat (limited to 'src/core/GpgCoreInit.h')
-rw-r--r--src/core/GpgCoreInit.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/core/GpgCoreInit.h b/src/core/GpgCoreInit.h
index dd60578a..888ca1a3 100644
--- a/src/core/GpgCoreInit.h
+++ b/src/core/GpgCoreInit.h
@@ -34,7 +34,7 @@ namespace GpgFrontend {
struct CoreInitArgs {
bool gather_external_gnupg_info;
- bool load_default_gpg_context;
+ bool unit_test_mode;
};
/**
@@ -47,11 +47,28 @@ void GPGFRONTEND_CORE_EXPORT DestroyGpgFrontendCore();
* @brief
*
*/
-void GPGFRONTEND_CORE_EXPORT InitGpgFrontendCore(CoreInitArgs);
+auto GPGFRONTEND_CORE_EXPORT InitGpgFrontendCore(CoreInitArgs) -> int;
/**
* @brief
*
*/
void GPGFRONTEND_CORE_EXPORT StartMonitorCoreInitializationStatus();
+
+/**
+ * @brief
+ *
+ * @return true
+ * @return false
+ */
+auto GPGFRONTEND_CORE_EXPORT InitGpgME() -> bool;
+
+/**
+ * @brief
+ *
+ * @return true
+ * @return false
+ */
+auto GPGFRONTEND_CORE_EXPORT InitBasicPath() -> bool;
+
} // namespace GpgFrontend