nfs-ganesha 1.4

nsm.h

Go to the documentation of this file.
00001 /*
00002  * Please do not edit this file.
00003  * It was generated using rpcgen.
00004  */
00005 
00006 #ifndef _NSM_H_RPCGEN
00007 #define _NSM_H_RPCGEN
00008 
00009 #include "config.h"
00010 #include "ganesha_rpc.h"
00011 #include "sal_data.h"
00012 
00013 #ifdef __cplusplus
00014 extern "C"
00015 {
00016 #endif
00017 
00018 #define SM_MAXSTRLEN 1024
00019 #define SM_PROG 100024
00020 #define SM_VERS 1
00021 #define SM_MON 2
00022 #define SM_UNMON 3
00023 #define SM_UNMON_ALL 4
00024 
00025   enum res
00026   {
00027     STAT_SUCC = 0,
00028     STAT_FAIL = 1,
00029   };
00030   typedef enum res res;
00031 
00032   struct sm_stat_res
00033   {
00034     res res_stat;
00035     int state;
00036   };
00037   typedef struct sm_stat_res sm_stat_res;
00038 
00039   struct sm_stat
00040   {
00041     int state;
00042   };
00043   typedef struct sm_stat sm_stat;
00044 
00045   struct my_id
00046   {
00047     char *my_name;
00048     int my_prog;
00049     int my_vers;
00050     int my_proc;
00051   };
00052   typedef struct my_id my_id;
00053 
00054   struct mon_id
00055   {
00056     char *mon_name;
00057     struct my_id my_id;
00058   };
00059   typedef struct mon_id mon_id;
00060 
00061   struct mon
00062   {
00063     struct mon_id mon_id;
00064     char priv[16];
00065   };
00066   typedef struct mon mon;
00067   extern bool_t nsm_monitor(state_nsm_client_t *host);
00068   extern bool_t nsm_unmonitor(state_nsm_client_t *host);
00069   extern void nsm_unmonitor_all(void);
00070 
00071 /* the xdr functions */
00072 
00073 #if defined(__STDC__) || defined(__cplusplus)
00074   extern bool_t xdr_res(XDR *, res *);
00075   extern bool_t xdr_sm_stat_res(XDR *, sm_stat_res *);
00076   extern bool_t xdr_sm_stat(XDR *, sm_stat *);
00077   extern bool_t xdr_my_id(XDR *, my_id *);
00078   extern bool_t xdr_mon_id(XDR *, mon_id *);
00079   extern bool_t xdr_mon(XDR *, mon *);
00080 
00081 #else                           /* K&R C */
00082   extern bool_t xdr_res();
00083   extern bool_t xdr_sm_stat_res();
00084   extern bool_t xdr_sm_stat();
00085   extern bool_t xdr_my_id();
00086   extern bool_t xdr_mon_id();
00087   extern bool_t xdr_mon();
00088 
00089 #endif                          /* K&R C */
00090 
00091 #ifdef __cplusplus
00092 }
00093 #endif
00094 
00095 #endif                          /* !_NSM_H_RPCGEN */