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.
35 #include "libnfs-zdr.h"
36 #include "libnfs-raw-nsm.h"
39 zdr_nsmstat1 (ZDR
*zdrs
, nsmstat1
*objp
)
41 register int32_t *buf
;
44 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
50 zdr_nsm_my_id (ZDR
*zdrs
, nsm_my_id
*objp
)
52 register int32_t *buf
;
55 if (!zdr_string (zdrs
, &objp
->my_name
, NSM_MAXSTRLEN
))
57 if (!zdr_int (zdrs
, &objp
->my_prog
))
59 if (!zdr_int (zdrs
, &objp
->my_vers
))
61 if (!zdr_int (zdrs
, &objp
->my_proc
))
67 zdr_nsm_mon_id (ZDR
*zdrs
, nsm_mon_id
*objp
)
69 register int32_t *buf
;
72 if (!zdr_string (zdrs
, &objp
->mon_name
, NSM_MAXSTRLEN
))
74 if (!zdr_nsm_my_id (zdrs
, &objp
->my_id
))
80 zdr_NSM1_STATres (ZDR
*zdrs
, NSM1_STATres
*objp
)
82 register int32_t *buf
;
85 if (!zdr_nsmstat1 (zdrs
, &objp
->res
))
87 if (!zdr_int (zdrs
, &objp
->state
))
93 zdr_NSM1_STATargs (ZDR
*zdrs
, NSM1_STATargs
*objp
)
95 register int32_t *buf
;
98 if (!zdr_string (zdrs
, &objp
->mon_name
, NSM_MAXSTRLEN
))
104 zdr_NSM1_MONres (ZDR
*zdrs
, NSM1_MONres
*objp
)
106 register int32_t *buf
;
109 if (!zdr_nsmstat1 (zdrs
, &objp
->res
))
111 if (!zdr_int (zdrs
, &objp
->state
))
117 zdr_NSM1_MONargs (ZDR
*zdrs
, NSM1_MONargs
*objp
)
119 register int32_t *buf
;
123 if (!zdr_nsm_mon_id (zdrs
, &objp
->mon_id
))
125 if (!zdr_opaque (zdrs
, objp
->priv
, 16))
131 zdr_NSM1_UNMONres (ZDR
*zdrs
, NSM1_UNMONres
*objp
)
133 register int32_t *buf
;
136 if (!zdr_int (zdrs
, &objp
->state
))
142 zdr_NSM1_UNMONargs (ZDR
*zdrs
, NSM1_UNMONargs
*objp
)
144 register int32_t *buf
;
147 if (!zdr_nsm_mon_id (zdrs
, &objp
->mon_id
))
153 zdr_NSM1_UNMONALLres (ZDR
*zdrs
, NSM1_UNMONALLres
*objp
)
155 register int32_t *buf
;
158 if (!zdr_int (zdrs
, &objp
->state
))
164 zdr_NSM1_UNMONALLargs (ZDR
*zdrs
, NSM1_UNMONALLargs
*objp
)
166 register int32_t *buf
;
169 if (!zdr_nsm_my_id (zdrs
, &objp
->my_id
))
175 zdr_NSM1_NOTIFYargs (ZDR
*zdrs
, NSM1_NOTIFYargs
*objp
)
177 register int32_t *buf
;
180 if (!zdr_string (zdrs
, &objp
->mon_name
, NSM_MAXSTRLEN
))
182 if (!zdr_int (zdrs
, &objp
->state
))