[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet-nim] 01/05: add shutdown procedure
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet-nim] 01/05: add shutdown procedure |
Date: |
Wed, 08 Aug 2018 20:20:00 +0200 |
This is an automated email from the git hooks/post-receive script.
lurchi pushed a commit to branch master
in repository gnunet-nim.
commit 6781ce0490588f0f557d09732fa476e7f11f6d75
Author: lurchi <address@hidden>
AuthorDate: Wed Aug 8 20:15:21 2018 +0200
add shutdown procedure
---
gnunet_application.nim | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnunet_application.nim b/gnunet_application.nim
index 6c617fe..3695912 100644
--- a/gnunet_application.nim
+++ b/gnunet_application.nim
@@ -84,6 +84,9 @@ proc initGnunetApplication*(configFile: string): ref
GnunetApplication =
assert(GNUNET_SYSERR != GNUNET_CONFIGURATION_load(app.configHandle,
configFile))
return app
+proc shutdownGnunetApplication*() =
+ GNUNET_SCHEDULER_shutdown()
+
proc doWork*(app: ref GnunetApplication) =
discard GNUNET_SCHEDULER_do_work(app.schedulerHandle) #FIXME: don't discard
--
To stop receiving notification emails like this one, please contact
address@hidden