| 1 | /* |
| 2 | * Please do not edit this file. |
| 3 | * It was generated using rpcgen. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _NSM_H_RPCGEN |
| 7 | #define _NSM_H_RPCGEN |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | #ifdef __cplusplus |
| 13 | extern "C" { |
| 14 | #endif |
| 15 | |
| 16 | #define NSM_MAXSTRLEN 1024 |
| 17 | |
| 18 | enum nsmstat1 { |
| 19 | NSM_STAT_SUCC = 0, |
| 20 | NSM_STAT_FAIL = 1, |
| 21 | }; |
| 22 | typedef enum nsmstat1 nsmstat1; |
| 23 | |
| 24 | struct nsm_my_id { |
| 25 | char *my_name; |
| 26 | int my_prog; |
| 27 | int my_vers; |
| 28 | int my_proc; |
| 29 | }; |
| 30 | typedef struct nsm_my_id nsm_my_id; |
| 31 | |
| 32 | struct nsm_mon_id { |
| 33 | char *mon_name; |
| 34 | struct nsm_my_id my_id; |
| 35 | }; |
| 36 | typedef struct nsm_mon_id nsm_mon_id; |
| 37 | |
| 38 | struct NSM1_STATres { |
| 39 | nsmstat1 res; |
| 40 | int state; |
| 41 | }; |
| 42 | typedef struct NSM1_STATres NSM1_STATres; |
| 43 | |
| 44 | struct NSM1_STATargs { |
| 45 | char *mon_name; |
| 46 | }; |
| 47 | typedef struct NSM1_STATargs NSM1_STATargs; |
| 48 | |
| 49 | struct NSM1_MONres { |
| 50 | nsmstat1 res; |
| 51 | int state; |
| 52 | }; |
| 53 | typedef struct NSM1_MONres NSM1_MONres; |
| 54 | |
| 55 | struct NSM1_MONargs { |
| 56 | struct nsm_mon_id mon_id; |
| 57 | char priv[16]; |
| 58 | }; |
| 59 | typedef struct NSM1_MONargs NSM1_MONargs; |
| 60 | |
| 61 | struct NSM1_UNMONres { |
| 62 | int state; |
| 63 | }; |
| 64 | typedef struct NSM1_UNMONres NSM1_UNMONres; |
| 65 | |
| 66 | struct NSM1_UNMONargs { |
| 67 | struct nsm_mon_id mon_id; |
| 68 | }; |
| 69 | typedef struct NSM1_UNMONargs NSM1_UNMONargs; |
| 70 | |
| 71 | struct NSM1_UNMONALLres { |
| 72 | int state; |
| 73 | }; |
| 74 | typedef struct NSM1_UNMONALLres NSM1_UNMONALLres; |
| 75 | |
| 76 | struct NSM1_UNMONALLargs { |
| 77 | struct nsm_my_id my_id; |
| 78 | }; |
| 79 | typedef struct NSM1_UNMONALLargs NSM1_UNMONALLargs; |
| 80 | |
| 81 | struct NSM1_NOTIFYargs { |
| 82 | char *mon_name; |
| 83 | int state; |
| 84 | }; |
| 85 | typedef struct NSM1_NOTIFYargs NSM1_NOTIFYargs; |
| 86 | |
| 87 | #define NSM_PROGRAM 100024 |
| 88 | #define NSM_V1 1 |
| 89 | |
| 90 | #if defined(__STDC__) || defined(__cplusplus) |
| 91 | #define NSM1_NULL 0 |
| 92 | extern void * nsm1_null_1(void *, CLIENT *); |
| 93 | extern void * nsm1_null_1_svc(void *, struct svc_req *); |
| 94 | #define NSM1_STAT 1 |
| 95 | extern struct NSM1_STATres * nsm1_stat_1(struct NSM1_STATargs *, CLIENT *); |
| 96 | extern struct NSM1_STATres * nsm1_stat_1_svc(struct NSM1_STATargs *, struct svc_req *); |
| 97 | #define NSM1_MON 2 |
| 98 | extern struct NSM1_MONres * nsm1_mon_1(struct NSM1_MONargs *, CLIENT *); |
| 99 | extern struct NSM1_MONres * nsm1_mon_1_svc(struct NSM1_MONargs *, struct svc_req *); |
| 100 | #define NSM1_UNMON 3 |
| 101 | extern struct NSM1_UNMONres * nsm1_unmon_1(struct NSM1_UNMONargs *, CLIENT *); |
| 102 | extern struct NSM1_UNMONres * nsm1_unmon_1_svc(struct NSM1_UNMONargs *, struct svc_req *); |
| 103 | #define NSM1_UNMON_ALL 4 |
| 104 | extern struct NSM1_UNMONALLres * nsm1_unmon_all_1(struct NSM1_UNMONALLargs *, CLIENT *); |
| 105 | extern struct NSM1_UNMONALLres * nsm1_unmon_all_1_svc(struct NSM1_UNMONALLargs *, struct svc_req *); |
| 106 | #define NSM1_SIMU_CRASH 5 |
| 107 | extern void * nsm1_simu_crash_1(void *, CLIENT *); |
| 108 | extern void * nsm1_simu_crash_1_svc(void *, struct svc_req *); |
| 109 | #define NSM1_NOTIFY 6 |
| 110 | extern void * nsm1_notify_1(struct NSM1_NOTIFYargs *, CLIENT *); |
| 111 | extern void * nsm1_notify_1_svc(struct NSM1_NOTIFYargs *, struct svc_req *); |
| 112 | extern int nsm_program_1_freeresult (SVCXPRT *, zdrproc_t, caddr_t); |
| 113 | |
| 114 | #else /* K&R C */ |
| 115 | #define NSM1_NULL 0 |
| 116 | extern void * nsm1_null_1(); |
| 117 | extern void * nsm1_null_1_svc(); |
| 118 | #define NSM1_STAT 1 |
| 119 | extern struct NSM1_STATres * nsm1_stat_1(); |
| 120 | extern struct NSM1_STATres * nsm1_stat_1_svc(); |
| 121 | #define NSM1_MON 2 |
| 122 | extern struct NSM1_MONres * nsm1_mon_1(); |
| 123 | extern struct NSM1_MONres * nsm1_mon_1_svc(); |
| 124 | #define NSM1_UNMON 3 |
| 125 | extern struct NSM1_UNMONres * nsm1_unmon_1(); |
| 126 | extern struct NSM1_UNMONres * nsm1_unmon_1_svc(); |
| 127 | #define NSM1_UNMON_ALL 4 |
| 128 | extern struct NSM1_UNMONALLres * nsm1_unmon_all_1(); |
| 129 | extern struct NSM1_UNMONALLres * nsm1_unmon_all_1_svc(); |
| 130 | #define NSM1_SIMU_CRASH 5 |
| 131 | extern void * nsm1_simu_crash_1(); |
| 132 | extern void * nsm1_simu_crash_1_svc(); |
| 133 | #define NSM1_NOTIFY 6 |
| 134 | extern void * nsm1_notify_1(); |
| 135 | extern void * nsm1_notify_1_svc(); |
| 136 | extern int nsm_program_1_freeresult (); |
| 137 | #endif /* K&R C */ |
| 138 | |
| 139 | /* the zdr functions */ |
| 140 | |
| 141 | #if defined(__STDC__) || defined(__cplusplus) |
| 142 | extern bool_t zdr_nsmstat1 (ZDR *, nsmstat1*); |
| 143 | extern bool_t zdr_nsm_my_id (ZDR *, nsm_my_id*); |
| 144 | extern bool_t zdr_nsm_mon_id (ZDR *, nsm_mon_id*); |
| 145 | extern bool_t zdr_NSM1_STATres (ZDR *, NSM1_STATres*); |
| 146 | extern bool_t zdr_NSM1_STATargs (ZDR *, NSM1_STATargs*); |
| 147 | extern bool_t zdr_NSM1_MONres (ZDR *, NSM1_MONres*); |
| 148 | extern bool_t zdr_NSM1_MONargs (ZDR *, NSM1_MONargs*); |
| 149 | extern bool_t zdr_NSM1_UNMONres (ZDR *, NSM1_UNMONres*); |
| 150 | extern bool_t zdr_NSM1_UNMONargs (ZDR *, NSM1_UNMONargs*); |
| 151 | extern bool_t zdr_NSM1_UNMONALLres (ZDR *, NSM1_UNMONALLres*); |
| 152 | extern bool_t zdr_NSM1_UNMONALLargs (ZDR *, NSM1_UNMONALLargs*); |
| 153 | extern bool_t zdr_NSM1_NOTIFYargs (ZDR *, NSM1_NOTIFYargs*); |
| 154 | |
| 155 | #else /* K&R C */ |
| 156 | extern bool_t zdr_nsmstat1 (); |
| 157 | extern bool_t zdr_nsm_my_id (); |
| 158 | extern bool_t zdr_nsm_mon_id (); |
| 159 | extern bool_t zdr_NSM1_STATres (); |
| 160 | extern bool_t zdr_NSM1_STATargs (); |
| 161 | extern bool_t zdr_NSM1_MONres (); |
| 162 | extern bool_t zdr_NSM1_MONargs (); |
| 163 | extern bool_t zdr_NSM1_UNMONres (); |
| 164 | extern bool_t zdr_NSM1_UNMONargs (); |
| 165 | extern bool_t zdr_NSM1_UNMONALLres (); |
| 166 | extern bool_t zdr_NSM1_UNMONALLargs (); |
| 167 | extern bool_t zdr_NSM1_NOTIFYargs (); |
| 168 | |
| 169 | #endif /* K&R C */ |
| 170 | |
| 171 | #ifdef __cplusplus |
| 172 | } |
| 173 | #endif |
| 174 | |
| 175 | #endif /* !_NSM_H_RPCGEN */ |