1/* Copyright (c) 2011, The Linux Foundation. All rights reserved.
2 *
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are
5 * met:
6 *     * Redistributions of source code must retain the above copyright
7 *       notice, this list of conditions and the following disclaimer.
8 *     * Redistributions in binary form must reproduce the above
9 *       copyright notice, this list of conditions and the following
10 *       disclaimer in the documentation and/or other materials provided
11 *       with the distribution.
12 *     * Neither the name of The Linux Foundation nor the names of its
13 *       contributors may be used to endorse or promote products derived
14 *       from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
19 * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 */
29/*
30 * Please do not edit this file.
31 * It was generated using rpcgen.
32 */
33
34#ifndef _LOC_API_RPC_H_RPCGEN
35#define _LOC_API_RPC_H_RPCGEN
36
37#include "librpc.h"
38#include "commondefs_rpcgen_rpc.h"
39#include "loc_api_rpcgen_common_rpc.h"
40
41#include <pthread.h>
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47
48typedef struct {
49    u_int rpc_loc_api_api_versions_return_type_len;
50    rpc_uint32 *rpc_loc_api_api_versions_return_type_val;
51} rpc_loc_api_api_versions_return_type;
52
53typedef rpc_uint32 rpc_loc_event_cb_f_type;
54
55struct rpc_loc_open_args {
56    rpc_loc_event_mask_type event_reg_mask;
57    rpc_loc_event_cb_f_type event_callback;
58};
59typedef struct rpc_loc_open_args rpc_loc_open_args;
60
61struct rpc_loc_close_args {
62    rpc_loc_client_handle_type handle;
63};
64typedef struct rpc_loc_close_args rpc_loc_close_args;
65
66struct rpc_loc_start_fix_args {
67    rpc_loc_client_handle_type handle;
68};
69typedef struct rpc_loc_start_fix_args rpc_loc_start_fix_args;
70
71struct rpc_loc_stop_fix_args {
72    rpc_loc_client_handle_type handle;
73};
74typedef struct rpc_loc_stop_fix_args rpc_loc_stop_fix_args;
75
76struct rpc_loc_ioctl_args {
77    rpc_loc_client_handle_type handle;
78    rpc_loc_ioctl_e_type ioctl_type;
79    rpc_loc_ioctl_data_u_type *ioctl_data;
80};
81typedef struct rpc_loc_ioctl_args rpc_loc_ioctl_args;
82
83struct rpc_loc_api_api_version_s_args {
84    rpc_boolean len_not_null;
85};
86typedef struct rpc_loc_api_api_version_s_args rpc_loc_api_api_version_s_args;
87
88struct rpc_loc_api_rpc_glue_code_info_remote_rets {
89    rpc_uint32 toolvers;
90    rpc_uint32 features;
91    rpc_uint32 proghash;
92    rpc_uint32 cbproghash;
93};
94typedef struct rpc_loc_api_rpc_glue_code_info_remote_rets rpc_loc_api_rpc_glue_code_info_remote_rets;
95
96struct rpc_loc_open_rets {
97    rpc_loc_client_handle_type loc_open_result;
98};
99typedef struct rpc_loc_open_rets rpc_loc_open_rets;
100
101struct rpc_loc_close_rets {
102    rpc_int32 loc_close_result;
103};
104typedef struct rpc_loc_close_rets rpc_loc_close_rets;
105
106struct rpc_loc_start_fix_rets {
107    rpc_int32 loc_start_fix_result;
108};
109typedef struct rpc_loc_start_fix_rets rpc_loc_start_fix_rets;
110
111struct rpc_loc_stop_fix_rets {
112    rpc_int32 loc_stop_fix_result;
113};
114typedef struct rpc_loc_stop_fix_rets rpc_loc_stop_fix_rets;
115
116struct rpc_loc_ioctl_rets {
117    rpc_int32 loc_ioctl_result;
118};
119typedef struct rpc_loc_ioctl_rets rpc_loc_ioctl_rets;
120
121struct rpc_loc_api_api_versions_rets {
122    rpc_loc_api_api_versions_return_type loc_api_api_versions_result;
123    rpc_uint32 *len;
124};
125typedef struct rpc_loc_api_api_versions_rets rpc_loc_api_api_versions_rets;
126#define LOC_APIVERS 0x00050006
127
128#define LOC_APIPROG 0x3000008C
129#define LOC_APIVERS_0001 0x00050001
130
131#if defined(__STDC__) || defined(__cplusplus)
132#define rpc_loc_api_null 0
133extern  enum clnt_stat rpc_loc_api_null_0x00050001(void *, void *, CLIENT *);
134extern  bool_t rpc_loc_api_null_0x00050001_svc(void *, void *, struct svc_req *);
135#define rpc_loc_api_rpc_glue_code_info_remote 1
136extern  enum clnt_stat rpc_loc_api_rpc_glue_code_info_remote_0x00050001(void *, rpc_loc_api_rpc_glue_code_info_remote_rets *, CLIENT *);
137extern  bool_t rpc_loc_api_rpc_glue_code_info_remote_0x00050001_svc(void *, rpc_loc_api_rpc_glue_code_info_remote_rets *, struct svc_req *);
138#define rpc_loc_open 2
139extern  enum clnt_stat rpc_loc_open_0x00050001(rpc_loc_open_args *, rpc_loc_open_rets *, CLIENT *);
140extern  bool_t rpc_loc_open_0x00050001_svc(rpc_loc_open_args *, rpc_loc_open_rets *, struct svc_req *);
141#define rpc_loc_close 3
142extern  enum clnt_stat rpc_loc_close_0x00050001(rpc_loc_close_args *, rpc_loc_close_rets *, CLIENT *);
143extern  bool_t rpc_loc_close_0x00050001_svc(rpc_loc_close_args *, rpc_loc_close_rets *, struct svc_req *);
144#define rpc_loc_start_fix 4
145extern  enum clnt_stat rpc_loc_start_fix_0x00050001(rpc_loc_start_fix_args *, rpc_loc_start_fix_rets *, CLIENT *);
146extern  bool_t rpc_loc_start_fix_0x00050001_svc(rpc_loc_start_fix_args *, rpc_loc_start_fix_rets *, struct svc_req *);
147#define rpc_loc_stop_fix 5
148extern  enum clnt_stat rpc_loc_stop_fix_0x00050001(rpc_loc_stop_fix_args *, rpc_loc_stop_fix_rets *, CLIENT *);
149extern  bool_t rpc_loc_stop_fix_0x00050001_svc(rpc_loc_stop_fix_args *, rpc_loc_stop_fix_rets *, struct svc_req *);
150#define rpc_loc_ioctl 6
151extern  enum clnt_stat rpc_loc_ioctl_0x00050001(rpc_loc_ioctl_args *, rpc_loc_ioctl_rets *, CLIENT *);
152extern  bool_t rpc_loc_ioctl_0x00050001_svc(rpc_loc_ioctl_args *, rpc_loc_ioctl_rets *, struct svc_req *);
153#define rpc_loc_api_api_versions 0xFFFFFFFF
154extern  enum clnt_stat rpc_loc_api_api_versions_0x00050001(void *, rpc_loc_api_api_versions_rets *, CLIENT *);
155extern  bool_t rpc_loc_api_api_versions_0x00050001_svc(void *, rpc_loc_api_api_versions_rets *, struct svc_req *);
156extern int loc_apiprog_0x00050001_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
157
158#else /* K&R C */
159#define rpc_loc_api_null 0
160extern  enum clnt_stat rpc_loc_api_null_0x00050001();
161extern  bool_t rpc_loc_api_null_0x00050001_svc();
162#define rpc_loc_api_rpc_glue_code_info_remote 1
163extern  enum clnt_stat rpc_loc_api_rpc_glue_code_info_remote_0x00050001();
164extern  bool_t rpc_loc_api_rpc_glue_code_info_remote_0x00050001_svc();
165#define rpc_loc_open 2
166extern  enum clnt_stat rpc_loc_open_0x00050001();
167extern  bool_t rpc_loc_open_0x00050001_svc();
168#define rpc_loc_close 3
169extern  enum clnt_stat rpc_loc_close_0x00050001();
170extern  bool_t rpc_loc_close_0x00050001_svc();
171#define rpc_loc_start_fix 4
172extern  enum clnt_stat rpc_loc_start_fix_0x00050001();
173extern  bool_t rpc_loc_start_fix_0x00050001_svc();
174#define rpc_loc_stop_fix 5
175extern  enum clnt_stat rpc_loc_stop_fix_0x00050001();
176extern  bool_t rpc_loc_stop_fix_0x00050001_svc();
177#define rpc_loc_ioctl 6
178extern  enum clnt_stat rpc_loc_ioctl_0x00050001();
179extern  bool_t rpc_loc_ioctl_0x00050001_svc();
180#define rpc_loc_api_api_versions 0xFFFFFFFF
181extern  enum clnt_stat rpc_loc_api_api_versions_0x00050001();
182extern  bool_t rpc_loc_api_api_versions_0x00050001_svc();
183extern int loc_apiprog_0x00050001_freeresult ();
184#endif /* K&R C */
185#define LOC_APIVERS_0002 0x00050002
186
187#if defined(__STDC__) || defined(__cplusplus)
188extern  enum clnt_stat rpc_loc_api_null_0x00050002(void *, void *, CLIENT *);
189extern  bool_t rpc_loc_api_null_0x00050002_svc(void *, void *, struct svc_req *);
190extern int loc_apiprog_0x00050002_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
191
192#else /* K&R C */
193extern  enum clnt_stat rpc_loc_api_null_0x00050002();
194extern  bool_t rpc_loc_api_null_0x00050002_svc();
195extern int loc_apiprog_0x00050002_freeresult ();
196#endif /* K&R C */
197#define LOC_APIVERS_0003 0x00050003
198
199#if defined(__STDC__) || defined(__cplusplus)
200extern  enum clnt_stat rpc_loc_api_null_0x00050003(void *, void *, CLIENT *);
201extern  bool_t rpc_loc_api_null_0x00050003_svc(void *, void *, struct svc_req *);
202extern int loc_apiprog_0x00050003_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
203
204#else /* K&R C */
205extern  enum clnt_stat rpc_loc_api_null_0x00050003();
206extern  bool_t rpc_loc_api_null_0x00050003_svc();
207extern int loc_apiprog_0x00050003_freeresult ();
208#endif /* K&R C */
209#define LOC_APIVERS_0004 0x00050004
210
211#if defined(__STDC__) || defined(__cplusplus)
212extern  enum clnt_stat rpc_loc_api_null_0x00050004(void *, void *, CLIENT *);
213extern  bool_t rpc_loc_api_null_0x00050004_svc(void *, void *, struct svc_req *);
214extern int loc_apiprog_0x00050004_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
215
216#else /* K&R C */
217extern  enum clnt_stat rpc_loc_api_null_0x00050004();
218extern  bool_t rpc_loc_api_null_0x00050004_svc();
219extern int loc_apiprog_0x00050004_freeresult ();
220#endif /* K&R C */
221#define LOC_APIVERS_0005 0x00050005
222
223#if defined(__STDC__) || defined(__cplusplus)
224extern  enum clnt_stat rpc_loc_api_null_0x00050005(void *, void *, CLIENT *);
225extern  bool_t rpc_loc_api_null_0x00050005_svc(void *, void *, struct svc_req *);
226extern int loc_apiprog_0x00050005_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
227
228#else /* K&R C */
229extern  enum clnt_stat rpc_loc_api_null_0x00050005();
230extern  bool_t rpc_loc_api_null_0x00050005_svc();
231extern int loc_apiprog_0x00050005_freeresult ();
232#endif /* K&R C */
233#define LOC_APIVERS_0006 0x00050006
234
235#if defined(__STDC__) || defined(__cplusplus)
236extern  enum clnt_stat rpc_loc_api_null_0x00050006(void *, void *, CLIENT *);
237extern  bool_t rpc_loc_api_null_0x00050006_svc(void *, void *, struct svc_req *);
238extern int loc_apiprog_0x00050006_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
239
240#else /* K&R C */
241extern  enum clnt_stat rpc_loc_api_null_0x00050006();
242extern  bool_t rpc_loc_api_null_0x00050006_svc();
243extern int loc_apiprog_0x00050006_freeresult ();
244#endif /* K&R C */
245
246/* the xdr functions */
247
248#if defined(__STDC__) || defined(__cplusplus)
249extern  bool_t xdr_rpc_loc_api_api_versions_return_type (XDR *, rpc_loc_api_api_versions_return_type*);
250extern  bool_t xdr_rpc_loc_event_cb_f_type (XDR *, rpc_loc_event_cb_f_type*);
251extern  bool_t xdr_rpc_loc_open_args (XDR *, rpc_loc_open_args*);
252extern  bool_t xdr_rpc_loc_close_args (XDR *, rpc_loc_close_args*);
253extern  bool_t xdr_rpc_loc_start_fix_args (XDR *, rpc_loc_start_fix_args*);
254extern  bool_t xdr_rpc_loc_stop_fix_args (XDR *, rpc_loc_stop_fix_args*);
255extern  bool_t xdr_rpc_loc_ioctl_args (XDR *, rpc_loc_ioctl_args*);
256extern  bool_t xdr_rpc_loc_api_api_version_s_args (XDR *, rpc_loc_api_api_version_s_args*);
257extern  bool_t xdr_rpc_loc_api_rpc_glue_code_info_remote_rets (XDR *, rpc_loc_api_rpc_glue_code_info_remote_rets*);
258extern  bool_t xdr_rpc_loc_open_rets (XDR *, rpc_loc_open_rets*);
259extern  bool_t xdr_rpc_loc_close_rets (XDR *, rpc_loc_close_rets*);
260extern  bool_t xdr_rpc_loc_start_fix_rets (XDR *, rpc_loc_start_fix_rets*);
261extern  bool_t xdr_rpc_loc_stop_fix_rets (XDR *, rpc_loc_stop_fix_rets*);
262extern  bool_t xdr_rpc_loc_ioctl_rets (XDR *, rpc_loc_ioctl_rets*);
263extern  bool_t xdr_rpc_loc_api_api_versions_rets (XDR *, rpc_loc_api_api_versions_rets*);
264
265#else /* K&R C */
266extern bool_t xdr_rpc_loc_api_api_versions_return_type ();
267extern bool_t xdr_rpc_loc_event_cb_f_type ();
268extern bool_t xdr_rpc_loc_open_args ();
269extern bool_t xdr_rpc_loc_close_args ();
270extern bool_t xdr_rpc_loc_start_fix_args ();
271extern bool_t xdr_rpc_loc_stop_fix_args ();
272extern bool_t xdr_rpc_loc_ioctl_args ();
273extern bool_t xdr_rpc_loc_api_api_version_s_args ();
274extern bool_t xdr_rpc_loc_api_rpc_glue_code_info_remote_rets ();
275extern bool_t xdr_rpc_loc_open_rets ();
276extern bool_t xdr_rpc_loc_close_rets ();
277extern bool_t xdr_rpc_loc_start_fix_rets ();
278extern bool_t xdr_rpc_loc_stop_fix_rets ();
279extern bool_t xdr_rpc_loc_ioctl_rets ();
280extern bool_t xdr_rpc_loc_api_api_versions_rets ();
281
282#endif /* K&R C */
283
284#ifdef __cplusplus
285}
286#endif
287
288#endif /* !_LOC_API_RPC_H_RPCGEN */
289