X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fstatd%2Fstatd.h;h=542a87798a93dafba5d854f05ec268a6df080017;hb=18c3a41364836e61ceeb8e615e2b059904c5b65f;hp=d9d5d3d230575e320572c8b3dd2cb0fbc0c3805f;hpb=f73e7b9f69835d483cee95e6a20b6307b9d16b77;p=nfs-utils.git diff --git a/utils/statd/statd.h b/utils/statd/statd.h index d9d5d3d..542a877 100644 --- a/utils/statd/statd.h +++ b/utils/statd/statd.h @@ -5,32 +5,13 @@ * NSM for Linux. */ -#include "config.h" -#include "sm_inter.h" -#include "system.h" -#include "log.h" - -/* - * Paths and filenames. - */ -#if defined(NFS_STATEDIR) -# define DEFAULT_DIR_BASE NFS_STATEDIR "/" -#else -# define DEFAULT_DIR_BASE "/var/lib/nfs/" +#ifdef HAVE_CONFIG_H +#include #endif -#define DEFAULT_SM_DIR DEFAULT_DIR_BASE "sm" -#define DEFAULT_SM_BAK_DIR DEFAULT_DIR_BASE "sm.bak" -#define DEFAULT_SM_STAT_PATH DEFAULT_DIR_BASE "state" - -/* Added to support run-time specification of state directory path. - * j_carlos_gomez@yahoo.com - */ - -extern char * DIR_BASE; -extern char * SM_DIR; -extern char * SM_BAK_DIR; -extern char * SM_STAT_PATH; +#include "sm_inter.h" +#include "system.h" +#include "xlog.h" /* * Status definitions. @@ -42,15 +23,15 @@ 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 load_state(void); /* * Host status structure and macros. @@ -79,12 +60,4 @@ 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 */ - -/* - * 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 int re_notify; /* time to re-read notify list */ +#define MODE_NO_NOTIFY 16 /* Don't notify peers of a reboot */