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 #ifndef _PORTMAP_H_RPCGEN
36 #define _PORTMAP_H_RPCGEN
38 #include <nfsc/libnfs-zdr.h>
47 struct pmap2_mapping
{
53 typedef struct pmap2_mapping pmap2_mapping
;
55 struct pmap2_call_args
{
64 typedef struct pmap2_call_args pmap2_call_args
;
66 struct pmap2_call_result
{
73 typedef struct pmap2_call_result pmap2_call_result
;
75 struct pmap2_mapping_list
{
77 struct pmap2_mapping_list
*next
;
79 typedef struct pmap2_mapping_list pmap2_mapping_list
;
81 struct pmap2_dump_result
{
82 struct pmap2_mapping_list
*list
;
84 typedef struct pmap2_dump_result pmap2_dump_result
;
86 struct pmap3_string_result
{
89 typedef struct pmap3_string_result pmap3_string_result
;
91 struct pmap3_mapping
{
98 typedef struct pmap3_mapping pmap3_mapping
;
100 struct pmap3_mapping_list
{
102 struct pmap3_mapping_list
*next
;
104 typedef struct pmap3_mapping_list pmap3_mapping_list
;
106 struct pmap3_dump_result
{
107 struct pmap3_mapping_list
*list
;
109 typedef struct pmap3_dump_result pmap3_dump_result
;
111 struct pmap3_call_args
{
120 typedef struct pmap3_call_args pmap3_call_args
;
122 struct pmap3_call_result
{
129 typedef struct pmap3_call_result pmap3_call_result
;
131 struct pmap3_netbuf
{
138 typedef struct pmap3_netbuf pmap3_netbuf
;
140 #define PMAP_PROGRAM 100000
143 #if defined(__STDC__) || defined(__cplusplus)
145 extern void * pmap2_null_2(void *, void *);
146 extern void * pmap2_null_2_svc(void *, struct svc_req
*);
148 extern uint32_t * pmap2_set_2(pmap2_mapping
*, void *);
149 extern uint32_t * pmap2_set_2_svc(pmap2_mapping
*, struct svc_req
*);
150 #define PMAP2_UNSET 2
151 extern uint32_t * pmap2_unset_2(pmap2_mapping
*, void *);
152 extern uint32_t * pmap2_unset_2_svc(pmap2_mapping
*, struct svc_req
*);
153 #define PMAP2_GETPORT 3
154 extern u_int
* pmap2_getport_2(pmap2_mapping
*, void *);
155 extern u_int
* pmap2_getport_2_svc(pmap2_mapping
*, struct svc_req
*);
157 extern pmap2_dump_result
* pmap2_dump_2(void *, void *);
158 extern pmap2_dump_result
* pmap2_dump_2_svc(void *, struct svc_req
*);
159 #define PMAP2_CALLIT 5
160 extern pmap2_call_result
* pmap2_callit_2(pmap2_call_args
*, void *);
161 extern pmap2_call_result
* pmap2_callit_2_svc(pmap2_call_args
*, struct svc_req
*);
162 extern int pmap_program_2_freeresult (void *, zdrproc_t
, caddr_t
);
166 extern void * pmap2_null_2();
167 extern void * pmap2_null_2_svc();
169 extern uint32_t * pmap2_set_2();
170 extern uint32_t * pmap2_set_2_svc();
171 #define PMAP2_UNSET 2
172 extern uint32_t * pmap2_unset_2();
173 extern uint32_t * pmap2_unset_2_svc();
174 #define PMAP2_GETPORT 3
175 extern u_int
* pmap2_getport_2();
176 extern u_int
* pmap2_getport_2_svc();
178 extern pmap2_dump_result
* pmap2_dump_2();
179 extern pmap2_dump_result
* pmap2_dump_2_svc();
180 #define PMAP2_CALLIT 5
181 extern pmap2_call_result
* pmap2_callit_2();
182 extern pmap2_call_result
* pmap2_callit_2_svc();
183 extern int pmap_program_2_freeresult ();
187 #if defined(__STDC__) || defined(__cplusplus)
189 extern void * pmap3_null_3(void *, void *);
190 extern void * pmap3_null_3_svc(void *, struct svc_req
*);
192 extern uint32_t * pmap3_set_3(pmap3_mapping
*, void *);
193 extern uint32_t * pmap3_set_3_svc(pmap3_mapping
*, struct svc_req
*);
194 #define PMAP3_UNSET 2
195 extern uint32_t * pmap3_unset_3(pmap3_mapping
*, void *);
196 extern uint32_t * pmap3_unset_3_svc(pmap3_mapping
*, struct svc_req
*);
197 #define PMAP3_GETADDR 3
198 extern pmap3_string_result
* pmap3_getaddr_3(pmap3_mapping
*, void *);
199 extern pmap3_string_result
* pmap3_getaddr_3_svc(pmap3_mapping
*, struct svc_req
*);
201 extern pmap3_dump_result
* pmap3_dump_3(void *, void *);
202 extern pmap3_dump_result
* pmap3_dump_3_svc(void *, struct svc_req
*);
203 #define PMAP3_CALLIT 5
204 extern pmap3_call_result
* pmap3_callit_3(pmap3_call_args
*, void *);
205 extern pmap3_call_result
* pmap3_callit_3_svc(pmap3_call_args
*, struct svc_req
*);
206 #define PMAP3_GETTIME 6
207 extern u_int
* pmap3_gettime_3(void *, void *);
208 extern u_int
* pmap3_gettime_3_svc(void *, struct svc_req
*);
209 #define PMAP3_UADDR2TADDR 7
210 extern pmap3_netbuf
* pmap3_uaddr2taddr_3(char **, void *);
211 extern pmap3_netbuf
* pmap3_uaddr2taddr_3_svc(char **, struct svc_req
*);
212 #define PMAP3_TADDR2UADDR 8
213 extern struct pmap3_string_result
* pmap3_taddr2uaddr_3(pmap3_netbuf
*, void *);
214 extern struct pmap3_string_result
* pmap3_taddr2uaddr_3_svc(pmap3_netbuf
*, struct svc_req
*);
215 extern int pmap_program_3_freeresult (void *, zdrproc_t
, caddr_t
);
219 extern void * pmap3_null_3();
220 extern void * pmap3_null_3_svc();
222 extern uint32_t * pmap3_set_3();
223 extern uint32_t * pmap3_set_3_svc();
224 #define PMAP3_UNSET 2
225 extern uint32_t * pmap3_unset_3();
226 extern uint32_t * pmap3_unset_3_svc();
227 #define PMAP3_GETADDR 3
228 extern pmap3_string_result
* pmap3_getaddr_3();
229 extern pmap3_string_result
* pmap3_getaddr_3_svc();
231 extern pmap3_dump_result
* pmap3_dump_3();
232 extern pmap3_dump_result
* pmap3_dump_3_svc();
233 #define PMAP3_CALLIT 5
234 extern pmap3_call_result
* pmap3_callit_3();
235 extern pmap3_call_result
* pmap3_callit_3_svc();
236 #define PMAP3_GETTIME 6
237 extern u_int
* pmap3_gettime_3();
238 extern u_int
* pmap3_gettime_3_svc();
239 #define PMAP3_UADDR2TADDR 7
240 extern pmap3_netbuf
* pmap3_uaddr2taddr_3();
241 extern pmap3_netbuf
* pmap3_uaddr2taddr_3_svc();
242 #define PMAP3_TADDR2UADDR 8
243 extern struct pmap3_string_result
* pmap3_taddr2uaddr_3();
244 extern struct pmap3_string_result
* pmap3_taddr2uaddr_3_svc();
245 extern int pmap_program_3_freeresult ();
248 /* the zdr functions */
250 #if defined(__STDC__) || defined(__cplusplus)
251 extern uint32_t zdr_pmap2_mapping (ZDR
*, pmap2_mapping
*);
252 extern uint32_t zdr_pmap2_call_args (ZDR
*, pmap2_call_args
*);
253 extern uint32_t zdr_pmap2_call_result (ZDR
*, pmap2_call_result
*);
254 extern uint32_t zdr_pmap2_mapping_list (ZDR
*, pmap2_mapping_list
*);
255 extern uint32_t zdr_pmap2_dump_result (ZDR
*, pmap2_dump_result
*);
256 extern uint32_t zdr_pmap3_string_result (ZDR
*, pmap3_string_result
*);
257 extern uint32_t zdr_pmap3_mapping (ZDR
*, pmap3_mapping
*);
258 extern uint32_t zdr_pmap3_mapping_list (ZDR
*, pmap3_mapping_list
*);
259 extern uint32_t zdr_pmap3_dump_result (ZDR
*, pmap3_dump_result
*);
260 extern uint32_t zdr_pmap3_call_args (ZDR
*, pmap3_call_args
*);
261 extern uint32_t zdr_pmap3_call_result (ZDR
*, pmap3_call_result
*);
262 extern uint32_t zdr_pmap3_netbuf (ZDR
*, pmap3_netbuf
*);
265 extern uint32_t zdr_pmap2_mapping ();
266 extern uint32_t zdr_pmap2_call_args ();
267 extern uint32_t zdr_pmap2_call_result ();
268 extern uint32_t zdr_pmap2_mapping_list ();
269 extern uint32_t zdr_pmap2_dump_result ();
270 extern uint32_t zdr_pmap3_string_result ();
271 extern uint32_t zdr_pmap3_mapping ();
272 extern uint32_t zdr_pmap3_mapping_list ();
273 extern uint32_t zdr_pmap3_dump_result ();
274 extern uint32_t zdr_pmap3_call_args ();
275 extern uint32_t zdr_pmap3_call_result ();
276 extern uint32_t zdr_pmap3_netbuf ();
284 #endif /* !_PORTMAP_H_RPCGEN */