2 Copyright (c) 2014, Ronnie Sahlberg
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
8 1. Redistributions of source code must retain the above copyright notice, this
9 list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright notice,
11 this list of conditions and the following disclaimer in the documentation
12 and/or other materials provided with the distribution.
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 The views and conclusions contained in the software and documentation are those
26 of the authors and should not be interpreted as representing official policies,
27 either expressed or implied, of the FreeBSD Project.
31 * Please do not edit this file.
32 * It was generated using rpcgen.
38 #include <nfsc/libnfs-zdr.h>
45 #define NSM_MAXSTRLEN 1024
51 typedef enum nsmstat1 nsmstat1
;
59 typedef struct nsm_my_id nsm_my_id
;
63 struct nsm_my_id my_id
;
65 typedef struct nsm_mon_id nsm_mon_id
;
71 typedef struct NSM1_STATres NSM1_STATres
;
73 struct NSM1_STATargs
{
76 typedef struct NSM1_STATargs NSM1_STATargs
;
82 typedef struct NSM1_MONres NSM1_MONres
;
85 struct nsm_mon_id mon_id
;
88 typedef struct NSM1_MONargs NSM1_MONargs
;
90 struct NSM1_UNMONres
{
93 typedef struct NSM1_UNMONres NSM1_UNMONres
;
95 struct NSM1_UNMONargs
{
96 struct nsm_mon_id mon_id
;
98 typedef struct NSM1_UNMONargs NSM1_UNMONargs
;
100 struct NSM1_UNMONALLres
{
103 typedef struct NSM1_UNMONALLres NSM1_UNMONALLres
;
105 struct NSM1_UNMONALLargs
{
106 struct nsm_my_id my_id
;
108 typedef struct NSM1_UNMONALLargs NSM1_UNMONALLargs
;
110 struct NSM1_NOTIFYargs
{
114 typedef struct NSM1_NOTIFYargs NSM1_NOTIFYargs
;
116 #define NSM_PROGRAM 100024
119 #if defined(__STDC__) || defined(__cplusplus)
121 extern void * nsm1_null_1(void *, void *);
122 extern void * nsm1_null_1_svc(void *, struct svc_req
*);
124 extern struct NSM1_STATres
* nsm1_stat_1(struct NSM1_STATargs
*, void *);
125 extern struct NSM1_STATres
* nsm1_stat_1_svc(struct NSM1_STATargs
*, struct svc_req
*);
127 extern struct NSM1_MONres
* nsm1_mon_1(struct NSM1_MONargs
*, void *);
128 extern struct NSM1_MONres
* nsm1_mon_1_svc(struct NSM1_MONargs
*, struct svc_req
*);
130 extern struct NSM1_UNMONres
* nsm1_unmon_1(struct NSM1_UNMONargs
*, void *);
131 extern struct NSM1_UNMONres
* nsm1_unmon_1_svc(struct NSM1_UNMONargs
*, struct svc_req
*);
132 #define NSM1_UNMON_ALL 4
133 extern struct NSM1_UNMONALLres
* nsm1_unmon_all_1(struct NSM1_UNMONALLargs
*, void *);
134 extern struct NSM1_UNMONALLres
* nsm1_unmon_all_1_svc(struct NSM1_UNMONALLargs
*, struct svc_req
*);
135 #define NSM1_SIMU_CRASH 5
136 extern void * nsm1_simu_crash_1(void *, void *);
137 extern void * nsm1_simu_crash_1_svc(void *, struct svc_req
*);
138 #define NSM1_NOTIFY 6
139 extern void * nsm1_notify_1(struct NSM1_NOTIFYargs
*, void *);
140 extern void * nsm1_notify_1_svc(struct NSM1_NOTIFYargs
*, struct svc_req
*);
141 extern int nsm_program_1_freeresult (void *, zdrproc_t
, caddr_t
);
145 extern void * nsm1_null_1();
146 extern void * nsm1_null_1_svc();
148 extern struct NSM1_STATres
* nsm1_stat_1();
149 extern struct NSM1_STATres
* nsm1_stat_1_svc();
151 extern struct NSM1_MONres
* nsm1_mon_1();
152 extern struct NSM1_MONres
* nsm1_mon_1_svc();
154 extern struct NSM1_UNMONres
* nsm1_unmon_1();
155 extern struct NSM1_UNMONres
* nsm1_unmon_1_svc();
156 #define NSM1_UNMON_ALL 4
157 extern struct NSM1_UNMONALLres
* nsm1_unmon_all_1();
158 extern struct NSM1_UNMONALLres
* nsm1_unmon_all_1_svc();
159 #define NSM1_SIMU_CRASH 5
160 extern void * nsm1_simu_crash_1();
161 extern void * nsm1_simu_crash_1_svc();
162 #define NSM1_NOTIFY 6
163 extern void * nsm1_notify_1();
164 extern void * nsm1_notify_1_svc();
165 extern int nsm_program_1_freeresult ();
168 /* the zdr functions */
170 #if defined(__STDC__) || defined(__cplusplus)
171 extern uint32_t zdr_nsmstat1 (ZDR
*, nsmstat1
*);
172 extern uint32_t zdr_nsm_my_id (ZDR
*, nsm_my_id
*);
173 extern uint32_t zdr_nsm_mon_id (ZDR
*, nsm_mon_id
*);
174 extern uint32_t zdr_NSM1_STATres (ZDR
*, NSM1_STATres
*);
175 extern uint32_t zdr_NSM1_STATargs (ZDR
*, NSM1_STATargs
*);
176 extern uint32_t zdr_NSM1_MONres (ZDR
*, NSM1_MONres
*);
177 extern uint32_t zdr_NSM1_MONargs (ZDR
*, NSM1_MONargs
*);
178 extern uint32_t zdr_NSM1_UNMONres (ZDR
*, NSM1_UNMONres
*);
179 extern uint32_t zdr_NSM1_UNMONargs (ZDR
*, NSM1_UNMONargs
*);
180 extern uint32_t zdr_NSM1_UNMONALLres (ZDR
*, NSM1_UNMONALLres
*);
181 extern uint32_t zdr_NSM1_UNMONALLargs (ZDR
*, NSM1_UNMONALLargs
*);
182 extern uint32_t zdr_NSM1_NOTIFYargs (ZDR
*, NSM1_NOTIFYargs
*);
185 extern uint32_t zdr_nsmstat1 ();
186 extern uint32_t zdr_nsm_my_id ();
187 extern uint32_t zdr_nsm_mon_id ();
188 extern uint32_t zdr_NSM1_STATres ();
189 extern uint32_t zdr_NSM1_STATargs ();
190 extern uint32_t zdr_NSM1_MONres ();
191 extern uint32_t zdr_NSM1_MONargs ();
192 extern uint32_t zdr_NSM1_UNMONres ();
193 extern uint32_t zdr_NSM1_UNMONargs ();
194 extern uint32_t zdr_NSM1_UNMONALLres ();
195 extern uint32_t zdr_NSM1_UNMONALLargs ();
196 extern uint32_t zdr_NSM1_NOTIFYargs ();
204 #endif /* !_NSM_H_RPCGEN */