aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgCoreInit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/GpgCoreInit.h')
-rw-r--r--src/core/GpgCoreInit.h42
1 files changed, 9 insertions, 33 deletions
diff --git a/src/core/GpgCoreInit.h b/src/core/GpgCoreInit.h
index 41e04d60..15f0254d 100644
--- a/src/core/GpgCoreInit.h
+++ b/src/core/GpgCoreInit.h
@@ -1,5 +1,5 @@
/**
- * Copyright (C) 2021 Saturneric
+ * Copyright (C) 2021 Saturneric <[email protected]>
*
* This file is part of GpgFrontend.
*
@@ -20,57 +20,33 @@
* the gpg4usb project, which is under GPL-3.0-or-later.
*
* All the source code of GpgFrontend was modified and released by
- * Saturneric<[email protected]> starting on May 12, 2021.
+ * Saturneric <[email protected]> starting on May 12, 2021.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
-#ifndef GPGFRONTEND_GPGCOREINIT_H
-#define GPGFRONTEND_GPGCOREINIT_H
+#pragma once
#include "GpgConstants.h"
namespace GpgFrontend {
-/**
- * @brief
- *
- */
-void GPGFRONTEND_CORE_EXPORT InitCoreLoggingSystem();
-
-/**
- * @brief
- *
- */
-void GPGFRONTEND_CORE_EXPORT ShutdownCoreLoggingSystem();
-
-/**
- * @brief
- *
- */
-void GPGFRONTEND_CORE_EXPORT ResetGpgFrontendCore();
-
-/**
- * @brief
- *
- */
-void init_gpgfrontend_core();
+struct CoreInitArgs {
+ bool gather_external_gnupg_info;
+ bool load_default_gpg_context;
+};
/**
* @brief
*
*/
-void reset_gpgfrontend_core();
+void GPGFRONTEND_CORE_EXPORT DestroyGpgFrontendCore();
/**
* @brief
*
- * @param channel
*/
-void new_default_settings_channel(
- int channel = GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL);
+void GPGFRONTEND_CORE_EXPORT InitGpgFrontendCore(CoreInitArgs);
} // namespace GpgFrontend
-
-#endif // GPGFRONTEND_GPGCOREINIT_H