diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-08-30 15:02:12 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-08-30 15:02:12 -0400 |
commit | 4875eb49f851d7919587cbc2059ff552a24bcfc1 (patch) | |
tree | 5e3080f1f264fa678d0223184db74db8d805c11d /node/Node.hpp | |
parent | 11774f7d5fe14226e99118f95346deda51baa254 (diff) | |
download | infinitytier-4875eb49f851d7919587cbc2059ff552a24bcfc1.tar.gz infinitytier-4875eb49f851d7919587cbc2059ff552a24bcfc1.zip |
Remove old launcher code, fix build error in idtool, add terminate command to control bus.
Diffstat (limited to 'node/Node.hpp')
-rw-r--r-- | node/Node.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/node/Node.hpp b/node/Node.hpp index 9fb4666d..8e9f2777 100644 --- a/node/Node.hpp +++ b/node/Node.hpp @@ -86,8 +86,7 @@ public: NODE_RUNNING = 0, NODE_NORMAL_TERMINATION = 1, NODE_RESTART_FOR_RECONFIGURATION = 2, - NODE_UNRECOVERABLE_ERROR = 3, - NODE_NEW_VERSION_AVAILABLE = 4 + NODE_UNRECOVERABLE_ERROR = 3 }; /** @@ -124,13 +123,16 @@ public: throw(); /** - * Cause run() to return with NODE_NORMAL_TERMINATION + * Cause run() to return * * This can be called from a signal handler or another thread to signal a * running node to shut down. Shutdown may take a few seconds, so run() * may not return instantly. Multiple calls are ignored. + * + * @param reason Reason for termination + * @param reasonText Text to be returned by reasonForTermination() */ - void terminate() + void terminate(ReasonForTermination reason,const char *reasonText) throw(); /** |