]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/statd.h
statd - keep persistent state in sm/* files.
[nfs-utils.git] / utils / statd / statd.h
index d9d5d3d230575e320572c8b3dd2cb0fbc0c3805f..b7ea40b54d6fe5e769de933571daa4cc71e5b411 100644 (file)
@@ -5,7 +5,10 @@
  * NSM for Linux.
  */
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "sm_inter.h"
 #include "system.h"
 #include "log.h"
@@ -51,6 +54,7 @@ extern int    process_reply(FD_SET_TYPE *);
 extern char *  xstrdup(const char *);
 extern void *  xmalloc(size_t);
 extern void    xunlink (char *, char *, short int);
+extern void    load_state(void);
 
 /*
  * Host status structure and macros.
@@ -79,12 +83,11 @@ extern int run_mode;
  * that just came back up, for ex, when failing over a HA service to
  * another host.... */
 #define STATIC_HOSTNAME 8      /* Always use the hostname set by -n */
-
+#define        MODE_NO_NOTIFY  16      /* Don't notify peers of a reboot */
 /*
  * Program name and version pointers -- See statd.c for the reasoning
  * as to why they're global.
  */
 extern char *name_p;           /* program basename */
-extern char *version_p;                /* program version */
+extern const char *version_p;  /* program version */
 
-extern int             re_notify; /* time to re-read notify list */