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
44 extern "C" {
45 #endif
46 
47 
48 typedef 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 
53 typedef rpc_uint32 rpc_loc_event_cb_f_type;
54 
55 struct rpc_loc_open_args {
56     rpc_loc_event_mask_type event_reg_mask;
57     rpc_loc_event_cb_f_type event_callback;
58 };
59 typedef struct rpc_loc_open_args rpc_loc_open_args;
60 
61 struct rpc_loc_close_args {
62     rpc_loc_client_handle_type handle;
63 };
64 typedef struct rpc_loc_close_args rpc_loc_close_args;
65 
66 struct rpc_loc_start_fix_args {
67     rpc_loc_client_handle_type handle;
68 };
69 typedef struct rpc_loc_start_fix_args rpc_loc_start_fix_args;
70 
71 struct rpc_loc_stop_fix_args {
72     rpc_loc_client_handle_type handle;
73 };
74 typedef struct rpc_loc_stop_fix_args rpc_loc_stop_fix_args;
75 
76 struct 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 };
81 typedef struct rpc_loc_ioctl_args rpc_loc_ioctl_args;
82 
83 struct rpc_loc_api_api_version_s_args {
84     rpc_boolean len_not_null;
85 };
86 typedef struct rpc_loc_api_api_version_s_args rpc_loc_api_api_version_s_args;
87 
88 struct 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 };
94 typedef struct rpc_loc_api_rpc_glue_code_info_remote_rets rpc_loc_api_rpc_glue_code_info_remote_rets;
95 
96 struct rpc_loc_open_rets {
97     rpc_loc_client_handle_type loc_open_result;
98 };
99 typedef struct rpc_loc_open_rets rpc_loc_open_rets;
100 
101 struct rpc_loc_close_rets {
102     rpc_int32 loc_close_result;
103 };
104 typedef struct rpc_loc_close_rets rpc_loc_close_rets;
105 
106 struct rpc_loc_start_fix_rets {
107     rpc_int32 loc_start_fix_result;
108 };
109 typedef struct rpc_loc_start_fix_rets rpc_loc_start_fix_rets;
110 
111 struct rpc_loc_stop_fix_rets {
112     rpc_int32 loc_stop_fix_result;
113 };
114 typedef struct rpc_loc_stop_fix_rets rpc_loc_stop_fix_rets;
115 
116 struct rpc_loc_ioctl_rets {
117     rpc_int32 loc_ioctl_result;
118 };
119 typedef struct rpc_loc_ioctl_rets rpc_loc_ioctl_rets;
120 
121 struct rpc_loc_api_api_versions_rets {
122     rpc_loc_api_api_versions_return_type loc_api_api_versions_result;
123     rpc_uint32 *len;
124 };
125 typedef 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
133 extern  enum clnt_stat rpc_loc_api_null_0x00050001(void *, void *, CLIENT *);
134 extern  bool_t rpc_loc_api_null_0x00050001_svc(void *, void *, struct svc_req *);
135 #define rpc_loc_api_rpc_glue_code_info_remote 1
136 extern  enum clnt_stat rpc_loc_api_rpc_glue_code_info_remote_0x00050001(void *, rpc_loc_api_rpc_glue_code_info_remote_rets *, CLIENT *);
137 extern  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
139 extern  enum clnt_stat rpc_loc_open_0x00050001(rpc_loc_open_args *, rpc_loc_open_rets *, CLIENT *);
140 extern  bool_t rpc_loc_open_0x00050001_svc(rpc_loc_open_args *, rpc_loc_open_rets *, struct svc_req *);
141 #define rpc_loc_close 3
142 extern  enum clnt_stat rpc_loc_close_0x00050001(rpc_loc_close_args *, rpc_loc_close_rets *, CLIENT *);
143 extern  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
145 extern  enum clnt_stat rpc_loc_start_fix_0x00050001(rpc_loc_start_fix_args *, rpc_loc_start_fix_rets *, CLIENT *);
146 extern  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
148 extern  enum clnt_stat rpc_loc_stop_fix_0x00050001(rpc_loc_stop_fix_args *, rpc_loc_stop_fix_rets *, CLIENT *);
149 extern  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
151 extern  enum clnt_stat rpc_loc_ioctl_0x00050001(rpc_loc_ioctl_args *, rpc_loc_ioctl_rets *, CLIENT *);
152 extern  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
154 extern  enum clnt_stat rpc_loc_api_api_versions_0x00050001(void *, rpc_loc_api_api_versions_rets *, CLIENT *);
155 extern  bool_t rpc_loc_api_api_versions_0x00050001_svc(void *, rpc_loc_api_api_versions_rets *, struct svc_req *);
156 extern int loc_apiprog_0x00050001_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
157 
158 #else /* K&R C */
159 #define rpc_loc_api_null 0
160 extern  enum clnt_stat rpc_loc_api_null_0x00050001();
161 extern  bool_t rpc_loc_api_null_0x00050001_svc();
162 #define rpc_loc_api_rpc_glue_code_info_remote 1
163 extern  enum clnt_stat rpc_loc_api_rpc_glue_code_info_remote_0x00050001();
164 extern  bool_t rpc_loc_api_rpc_glue_code_info_remote_0x00050001_svc();
165 #define rpc_loc_open 2
166 extern  enum clnt_stat rpc_loc_open_0x00050001();
167 extern  bool_t rpc_loc_open_0x00050001_svc();
168 #define rpc_loc_close 3
169 extern  enum clnt_stat rpc_loc_close_0x00050001();
170 extern  bool_t rpc_loc_close_0x00050001_svc();
171 #define rpc_loc_start_fix 4
172 extern  enum clnt_stat rpc_loc_start_fix_0x00050001();
173 extern  bool_t rpc_loc_start_fix_0x00050001_svc();
174 #define rpc_loc_stop_fix 5
175 extern  enum clnt_stat rpc_loc_stop_fix_0x00050001();
176 extern  bool_t rpc_loc_stop_fix_0x00050001_svc();
177 #define rpc_loc_ioctl 6
178 extern  enum clnt_stat rpc_loc_ioctl_0x00050001();
179 extern  bool_t rpc_loc_ioctl_0x00050001_svc();
180 #define rpc_loc_api_api_versions 0xFFFFFFFF
181 extern  enum clnt_stat rpc_loc_api_api_versions_0x00050001();
182 extern  bool_t rpc_loc_api_api_versions_0x00050001_svc();
183 extern int loc_apiprog_0x00050001_freeresult ();
184 #endif /* K&R C */
185 #define LOC_APIVERS_0002 0x00050002
186 
187 #if defined(__STDC__) || defined(__cplusplus)
188 extern  enum clnt_stat rpc_loc_api_null_0x00050002(void *, void *, CLIENT *);
189 extern  bool_t rpc_loc_api_null_0x00050002_svc(void *, void *, struct svc_req *);
190 extern int loc_apiprog_0x00050002_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
191 
192 #else /* K&R C */
193 extern  enum clnt_stat rpc_loc_api_null_0x00050002();
194 extern  bool_t rpc_loc_api_null_0x00050002_svc();
195 extern int loc_apiprog_0x00050002_freeresult ();
196 #endif /* K&R C */
197 #define LOC_APIVERS_0003 0x00050003
198 
199 #if defined(__STDC__) || defined(__cplusplus)
200 extern  enum clnt_stat rpc_loc_api_null_0x00050003(void *, void *, CLIENT *);
201 extern  bool_t rpc_loc_api_null_0x00050003_svc(void *, void *, struct svc_req *);
202 extern int loc_apiprog_0x00050003_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
203 
204 #else /* K&R C */
205 extern  enum clnt_stat rpc_loc_api_null_0x00050003();
206 extern  bool_t rpc_loc_api_null_0x00050003_svc();
207 extern int loc_apiprog_0x00050003_freeresult ();
208 #endif /* K&R C */
209 #define LOC_APIVERS_0004 0x00050004
210 
211 #if defined(__STDC__) || defined(__cplusplus)
212 extern  enum clnt_stat rpc_loc_api_null_0x00050004(void *, void *, CLIENT *);
213 extern  bool_t rpc_loc_api_null_0x00050004_svc(void *, void *, struct svc_req *);
214 extern int loc_apiprog_0x00050004_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
215 
216 #else /* K&R C */
217 extern  enum clnt_stat rpc_loc_api_null_0x00050004();
218 extern  bool_t rpc_loc_api_null_0x00050004_svc();
219 extern int loc_apiprog_0x00050004_freeresult ();
220 #endif /* K&R C */
221 #define LOC_APIVERS_0005 0x00050005
222 
223 #if defined(__STDC__) || defined(__cplusplus)
224 extern  enum clnt_stat rpc_loc_api_null_0x00050005(void *, void *, CLIENT *);
225 extern  bool_t rpc_loc_api_null_0x00050005_svc(void *, void *, struct svc_req *);
226 extern int loc_apiprog_0x00050005_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
227 
228 #else /* K&R C */
229 extern  enum clnt_stat rpc_loc_api_null_0x00050005();
230 extern  bool_t rpc_loc_api_null_0x00050005_svc();
231 extern int loc_apiprog_0x00050005_freeresult ();
232 #endif /* K&R C */
233 #define LOC_APIVERS_0006 0x00050006
234 
235 #if defined(__STDC__) || defined(__cplusplus)
236 extern  enum clnt_stat rpc_loc_api_null_0x00050006(void *, void *, CLIENT *);
237 extern  bool_t rpc_loc_api_null_0x00050006_svc(void *, void *, struct svc_req *);
238 extern int loc_apiprog_0x00050006_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
239 
240 #else /* K&R C */
241 extern  enum clnt_stat rpc_loc_api_null_0x00050006();
242 extern  bool_t rpc_loc_api_null_0x00050006_svc();
243 extern int loc_apiprog_0x00050006_freeresult ();
244 #endif /* K&R C */
245 
246 /* the xdr functions */
247 
248 #if defined(__STDC__) || defined(__cplusplus)
249 extern  bool_t xdr_rpc_loc_api_api_versions_return_type (XDR *, rpc_loc_api_api_versions_return_type*);
250 extern  bool_t xdr_rpc_loc_event_cb_f_type (XDR *, rpc_loc_event_cb_f_type*);
251 extern  bool_t xdr_rpc_loc_open_args (XDR *, rpc_loc_open_args*);
252 extern  bool_t xdr_rpc_loc_close_args (XDR *, rpc_loc_close_args*);
253 extern  bool_t xdr_rpc_loc_start_fix_args (XDR *, rpc_loc_start_fix_args*);
254 extern  bool_t xdr_rpc_loc_stop_fix_args (XDR *, rpc_loc_stop_fix_args*);
255 extern  bool_t xdr_rpc_loc_ioctl_args (XDR *, rpc_loc_ioctl_args*);
256 extern  bool_t xdr_rpc_loc_api_api_version_s_args (XDR *, rpc_loc_api_api_version_s_args*);
257 extern  bool_t xdr_rpc_loc_api_rpc_glue_code_info_remote_rets (XDR *, rpc_loc_api_rpc_glue_code_info_remote_rets*);
258 extern  bool_t xdr_rpc_loc_open_rets (XDR *, rpc_loc_open_rets*);
259 extern  bool_t xdr_rpc_loc_close_rets (XDR *, rpc_loc_close_rets*);
260 extern  bool_t xdr_rpc_loc_start_fix_rets (XDR *, rpc_loc_start_fix_rets*);
261 extern  bool_t xdr_rpc_loc_stop_fix_rets (XDR *, rpc_loc_stop_fix_rets*);
262 extern  bool_t xdr_rpc_loc_ioctl_rets (XDR *, rpc_loc_ioctl_rets*);
263 extern  bool_t xdr_rpc_loc_api_api_versions_rets (XDR *, rpc_loc_api_api_versions_rets*);
264 
265 #else /* K&R C */
266 extern bool_t xdr_rpc_loc_api_api_versions_return_type ();
267 extern bool_t xdr_rpc_loc_event_cb_f_type ();
268 extern bool_t xdr_rpc_loc_open_args ();
269 extern bool_t xdr_rpc_loc_close_args ();
270 extern bool_t xdr_rpc_loc_start_fix_args ();
271 extern bool_t xdr_rpc_loc_stop_fix_args ();
272 extern bool_t xdr_rpc_loc_ioctl_args ();
273 extern bool_t xdr_rpc_loc_api_api_version_s_args ();
274 extern bool_t xdr_rpc_loc_api_rpc_glue_code_info_remote_rets ();
275 extern bool_t xdr_rpc_loc_open_rets ();
276 extern bool_t xdr_rpc_loc_close_rets ();
277 extern bool_t xdr_rpc_loc_start_fix_rets ();
278 extern bool_t xdr_rpc_loc_stop_fix_rets ();
279 extern bool_t xdr_rpc_loc_ioctl_rets ();
280 extern 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