aboutsummaryrefslogtreecommitdiffstats
path: root/common/init.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-01-28 18:57:22 +0000
committerWerner Koch <[email protected]>2015-01-28 18:57:22 +0000
commit0c2bfd9d5a49a6134188f8f7820f6ccdebd9f181 (patch)
tree15c64db121e54ac1fa076be8ced08ee1ceffcf70 /common/init.c
parentgpg: Allow predefined names as answer to the keygen.algo prompt. (diff)
downloadgnupg-0c2bfd9d5a49a6134188f8f7820f6ccdebd9f181.tar.gz
gnupg-0c2bfd9d5a49a6134188f8f7820f6ccdebd9f181.zip
Add a hook to be called right after main.
* common/init.c (early_system_init): New stub function. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--common/init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/init.c b/common/init.c
index 2d5d6301c..c68a4e631 100644
--- a/common/init.c
+++ b/common/init.c
@@ -133,6 +133,13 @@ writestring_via_estream (int mode, const char *string)
}
+/* This function should be the first called after main. */
+void
+early_system_init (void)
+{
+}
+
+
/* This function is to be used early at program startup to make sure
that some subsystems are initialized. This is in particular
important for W32 to initialize the sockets so that our socket