Run hooks in response to certain events.
[nssm.git] / nssm.h
diff --git a/nssm.h b/nssm.h
index 1c78d18..f95391d 100644 (file)
--- a/nssm.h
+++ b/nssm.h
@@ -45,6 +45,7 @@
 #include "console.h"\r
 #include "env.h"\r
 #include "event.h"\r
+#include "hook.h"\r
 #include "imports.h"\r
 #include "messages.h"\r
 #include "process.h"\r
@@ -136,4 +137,10 @@ int usage(int);
 #define NSSM_SERVICE_CONTROL_START 0\r
 #define NSSM_SERVICE_CONTROL_ROTATE 128\r
 \r
+/* How many milliseconds to wait for a hook. */\r
+#define NSSM_HOOK_DEADLINE 60000\r
+\r
+/* How many milliseconds to wait for outstanding hooks. */\r
+#define NSSM_HOOK_THREAD_DEADLINE 80000\r
+\r
 #endif\r