]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/statd.h
NFS man page: update nfs(5) with details about IPv6 support
[nfs-utils.git] / utils / statd / statd.h
index ef90bdd48380488afc844e3089cdb4a849da7952..085f32d07d6360dcb68c7b581a1247c0505a20a2 100644 (file)
@@ -5,10 +5,13 @@
  * NSM for Linux.
  */
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "sm_inter.h"
 #include "system.h"
-#include "log.h"
+#include "xlog.h"
 
 /*
  * Paths and filenames.
@@ -42,15 +45,16 @@ extern char *  SM_STAT_PATH;
  * Function prototypes.
  */
 extern void    change_state(void);
-extern void    do_regist(u_long, void (*)());
 extern void    my_svc_run(void);
 extern void    notify_hosts(void);
 extern void    shuffle_dirs(void);
+extern int     statd_get_socket(void);
 extern int     process_notify_list(void);
 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    xunlink (char *, char *);
+extern void    load_state(void);
 
 /*
  * Host status structure and macros.
@@ -78,10 +82,5 @@ extern int run_mode;
 /* LH - notify_only mode would be for notifying hosts on an IP alias
  * that just came back up, for ex, when failing over a HA service to
  * another host.... */
-
-/*
- * 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 */
+#define STATIC_HOSTNAME 8      /* Always use the hostname set by -n */
+#define        MODE_NO_NOTIFY  16      /* Don't notify peers of a reboot */