aboutsummaryrefslogtreecommitdiff
path: root/src/noui.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-03-25 20:17:59 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2012-04-04 09:35:01 +0200
commit1a3f0da9229a8e524d1010cdc8bd3b9da71fe529 (patch)
treeea477d499012b9bbf16402284260c95b43e2cb1f /src/noui.h
parent5d7cebdadc991a23195a3519c1e9c038cb4f2290 (diff)
support RPC stop and encryptwallet with UI
Diffstat (limited to 'src/noui.h')
-rw-r--r--src/noui.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/noui.h b/src/noui.h
index 4010ec3c7c..0cb42ca0a4 100644
--- a/src/noui.h
+++ b/src/noui.h
@@ -7,6 +7,7 @@
#include <string>
#include "wallet.h"
+#include "init.h"
typedef void wxWindow;
#define wxYES 0x00000002
@@ -71,4 +72,10 @@ inline const char* _(const char* psz)
return psz;
}
+inline void QueueShutdown()
+{
+ // Without UI, Shutdown can simply be started in a new thread
+ CreateThread(Shutdown, NULL);
+}
+
#endif