Allow service editing on the command line.
[nssm.git] / nssm.h
diff --git a/nssm.h b/nssm.h
index 9d5d1d4..b83844a 100644 (file)
--- a/nssm.h
+++ b/nssm.h
 #include "messages.h"\r
 #include "process.h"\r
 #include "registry.h"\r
+#include "settings.h"\r
 #include "io.h"\r
 #include "gui.h"\r
 \r
 int str_equiv(const TCHAR *, const TCHAR *);\r
 void strip_basename(TCHAR *);\r
+int str_number(const TCHAR *, unsigned long *);\r
+int usage(int);\r
 \r
 #define NSSM _T("nssm")\r
-#define NSSM_VERSION _T("2.21")\r
-#define NSSM_VERSIONINFO 2,21,0,0\r
-#define NSSM_DATE _T("2013-11-24")\r
+#include "version.h"\r
 \r
 /*\r
   Throttle the restart of the service if it stops before this many\r
@@ -55,6 +56,12 @@ void strip_basename(TCHAR *);
 #define NSSM_STOP_METHOD_THREADS (1 << 2)\r
 #define NSSM_STOP_METHOD_TERMINATE (1 << 3)\r
 \r
+/* Startup types. */\r
+#define NSSM_STARTUP_AUTOMATIC 0\r
+#define NSSM_STARTUP_DELAYED 1\r
+#define NSSM_STARTUP_MANUAL 2\r
+#define NSSM_STARTUP_DISABLED 3\r
+\r
 /* Exit actions. */\r
 #define NSSM_EXIT_RESTART 0\r
 #define NSSM_EXIT_IGNORE 1\r