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 #include "loc_api_rpcgen_common_rpc.h"
35
36 bool_t
xdr_rpc_loc_client_handle_type(XDR * xdrs,rpc_loc_client_handle_type * objp)37 xdr_rpc_loc_client_handle_type (XDR *xdrs, rpc_loc_client_handle_type *objp)
38 {
39 register int32_t *buf;
40
41 if (!xdr_rpc_int32 (xdrs, objp))
42 return FALSE;
43 return TRUE;
44 }
45
46 bool_t
xdr_rpc_loc_event_mask_type(XDR * xdrs,rpc_loc_event_mask_type * objp)47 xdr_rpc_loc_event_mask_type (XDR *xdrs, rpc_loc_event_mask_type *objp)
48 {
49 register int32_t *buf;
50
51 if (!xdr_rpc_uint64 (xdrs, objp))
52 return FALSE;
53 return TRUE;
54 }
55
56 bool_t
xdr_rpc_loc_position_valid_mask_type(XDR * xdrs,rpc_loc_position_valid_mask_type * objp)57 xdr_rpc_loc_position_valid_mask_type (XDR *xdrs, rpc_loc_position_valid_mask_type *objp)
58 {
59 register int32_t *buf;
60
61 if (!xdr_rpc_uint64 (xdrs, objp))
62 return FALSE;
63 return TRUE;
64 }
65
66 bool_t
xdr_rpc_loc_pos_technology_mask_type(XDR * xdrs,rpc_loc_pos_technology_mask_type * objp)67 xdr_rpc_loc_pos_technology_mask_type (XDR *xdrs, rpc_loc_pos_technology_mask_type *objp)
68 {
69 register int32_t *buf;
70
71 if (!xdr_rpc_uint32 (xdrs, objp))
72 return FALSE;
73 return TRUE;
74 }
75
76 bool_t
xdr_rpc_loc_session_status_e_type(XDR * xdrs,rpc_loc_session_status_e_type * objp)77 xdr_rpc_loc_session_status_e_type (XDR *xdrs, rpc_loc_session_status_e_type *objp)
78 {
79 register int32_t *buf;
80
81 if (!xdr_enum (xdrs, (enum_t *) objp))
82 return FALSE;
83 return TRUE;
84 }
85
86 bool_t
xdr_rpc_loc_calendar_time_s_type(XDR * xdrs,rpc_loc_calendar_time_s_type * objp)87 xdr_rpc_loc_calendar_time_s_type (XDR *xdrs, rpc_loc_calendar_time_s_type *objp)
88 {
89 register int32_t *buf;
90
91 if (!xdr_rpc_uint16 (xdrs, &objp->year))
92 return FALSE;
93 if (!xdr_u_char (xdrs, &objp->month))
94 return FALSE;
95 if (!xdr_u_char (xdrs, &objp->day_of_week))
96 return FALSE;
97 if (!xdr_u_char (xdrs, &objp->day))
98 return FALSE;
99 if (!xdr_u_char (xdrs, &objp->hour))
100 return FALSE;
101 if (!xdr_u_char (xdrs, &objp->minute))
102 return FALSE;
103 if (!xdr_u_char (xdrs, &objp->second))
104 return FALSE;
105 if (!xdr_rpc_uint16 (xdrs, &objp->millisecond))
106 return FALSE;
107 return TRUE;
108 }
109
110 bool_t
xdr_rpc_loc_parsed_position_s_type(XDR * xdrs,rpc_loc_parsed_position_s_type * objp)111 xdr_rpc_loc_parsed_position_s_type (XDR *xdrs, rpc_loc_parsed_position_s_type *objp)
112 {
113 register int32_t *buf;
114
115 if (!xdr_rpc_loc_position_valid_mask_type (xdrs, &objp->valid_mask))
116 return FALSE;
117 if (!xdr_rpc_loc_session_status_e_type (xdrs, &objp->session_status))
118 return FALSE;
119 if (!xdr_rpc_loc_calendar_time_s_type (xdrs, &objp->timestamp_calendar))
120 return FALSE;
121 if (!xdr_rpc_uint64 (xdrs, &objp->timestamp_utc))
122 return FALSE;
123 if (!xdr_rpc_uint8 (xdrs, &objp->leap_seconds))
124 return FALSE;
125 if (!xdr_float (xdrs, &objp->time_unc))
126 return FALSE;
127 if (!xdr_double (xdrs, &objp->latitude))
128 return FALSE;
129 if (!xdr_double (xdrs, &objp->longitude))
130 return FALSE;
131 if (!xdr_float (xdrs, &objp->altitude_wrt_ellipsoid))
132 return FALSE;
133 if (!xdr_float (xdrs, &objp->altitude_wrt_mean_sea_level))
134 return FALSE;
135 if (!xdr_float (xdrs, &objp->speed_horizontal))
136 return FALSE;
137 if (!xdr_float (xdrs, &objp->speed_vertical))
138 return FALSE;
139 if (!xdr_float (xdrs, &objp->heading))
140 return FALSE;
141 if (!xdr_float (xdrs, &objp->hor_unc_circular))
142 return FALSE;
143 if (!xdr_float (xdrs, &objp->hor_unc_ellipse_semi_major))
144 return FALSE;
145 if (!xdr_float (xdrs, &objp->hor_unc_ellipse_semi_minor))
146 return FALSE;
147 if (!xdr_float (xdrs, &objp->hor_unc_ellipse_orient_azimuth))
148 return FALSE;
149 if (!xdr_float (xdrs, &objp->vert_unc))
150 return FALSE;
151 if (!xdr_float (xdrs, &objp->speed_unc))
152 return FALSE;
153 if (!xdr_float (xdrs, &objp->heading_unc))
154 return FALSE;
155 if (!xdr_u_char (xdrs, &objp->confidence_horizontal))
156 return FALSE;
157 if (!xdr_u_char (xdrs, &objp->confidence_vertical))
158 return FALSE;
159 if (!xdr_float (xdrs, &objp->magnetic_deviation))
160 return FALSE;
161 if (!xdr_rpc_loc_pos_technology_mask_type (xdrs, &objp->technology_mask))
162 return FALSE;
163 return TRUE;
164 }
165
166 bool_t
xdr_rpc_loc_sv_system_e_type(XDR * xdrs,rpc_loc_sv_system_e_type * objp)167 xdr_rpc_loc_sv_system_e_type (XDR *xdrs, rpc_loc_sv_system_e_type *objp)
168 {
169 register int32_t *buf;
170
171 if (!xdr_enum (xdrs, (enum_t *) objp))
172 return FALSE;
173 return TRUE;
174 }
175
176 bool_t
xdr_rpc_loc_sv_status_e_type(XDR * xdrs,rpc_loc_sv_status_e_type * objp)177 xdr_rpc_loc_sv_status_e_type (XDR *xdrs, rpc_loc_sv_status_e_type *objp)
178 {
179 register int32_t *buf;
180
181 if (!xdr_enum (xdrs, (enum_t *) objp))
182 return FALSE;
183 return TRUE;
184 }
185
186 bool_t
xdr_rpc_loc_sv_info_valid_mask_type(XDR * xdrs,rpc_loc_sv_info_valid_mask_type * objp)187 xdr_rpc_loc_sv_info_valid_mask_type (XDR *xdrs, rpc_loc_sv_info_valid_mask_type *objp)
188 {
189 register int32_t *buf;
190
191 if (!xdr_rpc_uint32 (xdrs, objp))
192 return FALSE;
193 return TRUE;
194 }
195
196 bool_t
xdr_rpc_loc_sv_info_s_type(XDR * xdrs,rpc_loc_sv_info_s_type * objp)197 xdr_rpc_loc_sv_info_s_type (XDR *xdrs, rpc_loc_sv_info_s_type *objp)
198 {
199 register int32_t *buf;
200
201 if (!xdr_rpc_loc_sv_info_valid_mask_type (xdrs, &objp->valid_mask))
202 return FALSE;
203 if (!xdr_rpc_loc_sv_system_e_type (xdrs, &objp->system))
204 return FALSE;
205 if (!xdr_rpc_uint8 (xdrs, &objp->prn))
206 return FALSE;
207 if (!xdr_rpc_uint8 (xdrs, &objp->health_status))
208 return FALSE;
209 if (!xdr_rpc_loc_sv_status_e_type (xdrs, &objp->process_status))
210 return FALSE;
211 if (!xdr_rpc_boolean (xdrs, &objp->has_eph))
212 return FALSE;
213 if (!xdr_rpc_boolean (xdrs, &objp->has_alm))
214 return FALSE;
215 if (!xdr_float (xdrs, &objp->elevation))
216 return FALSE;
217 if (!xdr_float (xdrs, &objp->azimuth))
218 return FALSE;
219 if (!xdr_float (xdrs, &objp->snr))
220 return FALSE;
221 return TRUE;
222 }
223
224 bool_t
xdr_rpc_loc_gnss_info_valid_mask_type(XDR * xdrs,rpc_loc_gnss_info_valid_mask_type * objp)225 xdr_rpc_loc_gnss_info_valid_mask_type (XDR *xdrs, rpc_loc_gnss_info_valid_mask_type *objp)
226 {
227 register int32_t *buf;
228
229 if (!xdr_rpc_uint32 (xdrs, objp))
230 return FALSE;
231 return TRUE;
232 }
233
234 bool_t
xdr_rpc_loc_gnss_info_s_type(XDR * xdrs,rpc_loc_gnss_info_s_type * objp)235 xdr_rpc_loc_gnss_info_s_type (XDR *xdrs, rpc_loc_gnss_info_s_type *objp)
236 {
237 register int32_t *buf;
238
239 if (!xdr_rpc_loc_gnss_info_valid_mask_type (xdrs, &objp->valid_mask))
240 return FALSE;
241 if (!xdr_float (xdrs, &objp->position_dop))
242 return FALSE;
243 if (!xdr_float (xdrs, &objp->horizontal_dop))
244 return FALSE;
245 if (!xdr_float (xdrs, &objp->vertical_dop))
246 return FALSE;
247 if (!xdr_rpc_boolean (xdrs, &objp->altitude_assumed))
248 return FALSE;
249 if (!xdr_rpc_uint16 (xdrs, &objp->sv_count))
250 return FALSE;
251 if (!xdr_array (xdrs, (char **)&objp->sv_list.sv_list_val, (u_int *) &objp->sv_list.sv_list_len, 80,
252 sizeof (rpc_loc_sv_info_s_type), (xdrproc_t) xdr_rpc_loc_sv_info_s_type))
253 return FALSE;
254 return TRUE;
255 }
256
257 bool_t
xdr_rpc_loc_nmea_report_s_type(XDR * xdrs,rpc_loc_nmea_report_s_type * objp)258 xdr_rpc_loc_nmea_report_s_type (XDR *xdrs, rpc_loc_nmea_report_s_type *objp)
259 {
260 register int32_t *buf;
261
262 int i;
263 if (!xdr_rpc_uint16 (xdrs, &objp->length))
264 return FALSE;
265 if (!xdr_opaque (xdrs, objp->nmea_sentences, 200))
266 return FALSE;
267 return TRUE;
268 }
269
270 bool_t
xdr_rpc_loc_status_event_e_type(XDR * xdrs,rpc_loc_status_event_e_type * objp)271 xdr_rpc_loc_status_event_e_type (XDR *xdrs, rpc_loc_status_event_e_type *objp)
272 {
273 register int32_t *buf;
274
275 if (!xdr_enum (xdrs, (enum_t *) objp))
276 return FALSE;
277 return TRUE;
278 }
279
280 bool_t
xdr_rpc_loc_engine_state_e_type(XDR * xdrs,rpc_loc_engine_state_e_type * objp)281 xdr_rpc_loc_engine_state_e_type (XDR *xdrs, rpc_loc_engine_state_e_type *objp)
282 {
283 register int32_t *buf;
284
285 if (!xdr_enum (xdrs, (enum_t *) objp))
286 return FALSE;
287 return TRUE;
288 }
289
290 bool_t
xdr_rpc_loc_fix_session_state_e_type(XDR * xdrs,rpc_loc_fix_session_state_e_type * objp)291 xdr_rpc_loc_fix_session_state_e_type (XDR *xdrs, rpc_loc_fix_session_state_e_type *objp)
292 {
293 register int32_t *buf;
294
295 if (!xdr_enum (xdrs, (enum_t *) objp))
296 return FALSE;
297 return TRUE;
298 }
299
300 bool_t
xdr_rpc_loc_status_event_payload_u_type(XDR * xdrs,rpc_loc_status_event_payload_u_type * objp)301 xdr_rpc_loc_status_event_payload_u_type (XDR *xdrs, rpc_loc_status_event_payload_u_type *objp)
302 {
303 register int32_t *buf;
304
305 if (!xdr_rpc_loc_status_event_e_type (xdrs, &objp->disc))
306 return FALSE;
307 switch (objp->disc) {
308 case RPC_LOC_STATUS_EVENT_ENGINE_STATE:
309 if (!xdr_rpc_loc_engine_state_e_type (xdrs, &objp->rpc_loc_status_event_payload_u_type_u.engine_state))
310 return FALSE;
311 break;
312 case RPC_LOC_STATUS_EVENT_FIX_SESSION_STATE:
313 if (!xdr_rpc_loc_fix_session_state_e_type (xdrs, &objp->rpc_loc_status_event_payload_u_type_u.fix_session_state))
314 return FALSE;
315 break;
316 default:
317 break;
318 }
319 return TRUE;
320 }
321
322 bool_t
xdr_rpc_loc_status_event_s_type(XDR * xdrs,rpc_loc_status_event_s_type * objp)323 xdr_rpc_loc_status_event_s_type (XDR *xdrs, rpc_loc_status_event_s_type *objp)
324 {
325 register int32_t *buf;
326
327 if (!xdr_rpc_loc_status_event_e_type (xdrs, &objp->event))
328 return FALSE;
329 if (!xdr_rpc_loc_status_event_payload_u_type (xdrs, &objp->payload))
330 return FALSE;
331 return TRUE;
332 }
333
334 bool_t
xdr_rpc_loc_server_addr_e_type(XDR * xdrs,rpc_loc_server_addr_e_type * objp)335 xdr_rpc_loc_server_addr_e_type (XDR *xdrs, rpc_loc_server_addr_e_type *objp)
336 {
337 register int32_t *buf;
338
339 if (!xdr_enum (xdrs, (enum_t *) objp))
340 return FALSE;
341 return TRUE;
342 }
343
344 bool_t
xdr_rpc_loc_server_addr_ipv4_type(XDR * xdrs,rpc_loc_server_addr_ipv4_type * objp)345 xdr_rpc_loc_server_addr_ipv4_type (XDR *xdrs, rpc_loc_server_addr_ipv4_type *objp)
346 {
347 register int32_t *buf;
348
349 if (!xdr_rpc_uint32 (xdrs, &objp->addr))
350 return FALSE;
351 if (!xdr_rpc_uint16 (xdrs, &objp->port))
352 return FALSE;
353 return TRUE;
354 }
355
356 bool_t
xdr_rpc_loc_server_addr_url_type(XDR * xdrs,rpc_loc_server_addr_url_type * objp)357 xdr_rpc_loc_server_addr_url_type (XDR *xdrs, rpc_loc_server_addr_url_type *objp)
358 {
359 register int32_t *buf;
360
361 int i;
362 if (!xdr_rpc_uint16 (xdrs, &objp->length))
363 return FALSE;
364 if (!xdr_opaque (xdrs, objp->addr, 256))
365 return FALSE;
366 return TRUE;
367 }
368
369 bool_t
xdr_rpc_loc_server_addr_ipv6_type(XDR * xdrs,rpc_loc_server_addr_ipv6_type * objp)370 xdr_rpc_loc_server_addr_ipv6_type (XDR *xdrs, rpc_loc_server_addr_ipv6_type *objp)
371 {
372 register int32_t *buf;
373
374 int i;
375 if (!xdr_vector (xdrs, (char *)objp->addr, 8,
376 sizeof (rpc_uint16), (xdrproc_t) xdr_rpc_uint16))
377 return FALSE;
378 if (!xdr_rpc_uint32 (xdrs, &objp->port))
379 return FALSE;
380 return TRUE;
381 }
382
383 bool_t
xdr_rpc_loc_server_addr_u_type(XDR * xdrs,rpc_loc_server_addr_u_type * objp)384 xdr_rpc_loc_server_addr_u_type (XDR *xdrs, rpc_loc_server_addr_u_type *objp)
385 {
386 register int32_t *buf;
387
388 if (!xdr_rpc_loc_server_addr_e_type (xdrs, &objp->disc))
389 return FALSE;
390 switch (objp->disc) {
391 case RPC_LOC_SERVER_ADDR_IPV4:
392 if (!xdr_rpc_loc_server_addr_ipv4_type (xdrs, &objp->rpc_loc_server_addr_u_type_u.ipv4))
393 return FALSE;
394 break;
395 case RPC_LOC_SERVER_ADDR_URL:
396 if (!xdr_rpc_loc_server_addr_url_type (xdrs, &objp->rpc_loc_server_addr_u_type_u.url))
397 return FALSE;
398 break;
399 case RPC_LOC_SERVER_ADDR_IPV6:
400 if (!xdr_rpc_loc_server_addr_ipv6_type (xdrs, &objp->rpc_loc_server_addr_u_type_u.ipv6))
401 return FALSE;
402 break;
403 default:
404 break;
405 }
406 return TRUE;
407 }
408
409 bool_t
xdr_rpc_loc_server_info_s_type(XDR * xdrs,rpc_loc_server_info_s_type * objp)410 xdr_rpc_loc_server_info_s_type (XDR *xdrs, rpc_loc_server_info_s_type *objp)
411 {
412 register int32_t *buf;
413
414 if (!xdr_rpc_loc_server_addr_e_type (xdrs, &objp->addr_type))
415 return FALSE;
416 if (!xdr_rpc_loc_server_addr_u_type (xdrs, &objp->addr_info))
417 return FALSE;
418 return TRUE;
419 }
420
421 bool_t
xdr_rpc_loc_ni_notify_verify_e_type(XDR * xdrs,rpc_loc_ni_notify_verify_e_type * objp)422 xdr_rpc_loc_ni_notify_verify_e_type (XDR *xdrs, rpc_loc_ni_notify_verify_e_type *objp)
423 {
424 register int32_t *buf;
425
426 if (!xdr_enum (xdrs, (enum_t *) objp))
427 return FALSE;
428 return TRUE;
429 }
430
431 bool_t
xdr_rpc_loc_ni_event_e_type(XDR * xdrs,rpc_loc_ni_event_e_type * objp)432 xdr_rpc_loc_ni_event_e_type (XDR *xdrs, rpc_loc_ni_event_e_type *objp)
433 {
434 register int32_t *buf;
435
436 if (!xdr_enum (xdrs, (enum_t *) objp))
437 return FALSE;
438 return TRUE;
439 }
440
441 bool_t
xdr_rpc_loc_ni_datacoding_scheme_e_type(XDR * xdrs,rpc_loc_ni_datacoding_scheme_e_type * objp)442 xdr_rpc_loc_ni_datacoding_scheme_e_type (XDR *xdrs, rpc_loc_ni_datacoding_scheme_e_type *objp)
443 {
444 register int32_t *buf;
445
446 if (!xdr_enum (xdrs, (enum_t *) objp))
447 return FALSE;
448 return TRUE;
449 }
450
451 bool_t
xdr_rpc_loc_ni_vx_requester_id_encoding_scheme_e_type(XDR * xdrs,rpc_loc_ni_vx_requester_id_encoding_scheme_e_type * objp)452 xdr_rpc_loc_ni_vx_requester_id_encoding_scheme_e_type (XDR *xdrs, rpc_loc_ni_vx_requester_id_encoding_scheme_e_type *objp)
453 {
454 register int32_t *buf;
455
456 if (!xdr_enum (xdrs, (enum_t *) objp))
457 return FALSE;
458 return TRUE;
459 }
460
461 bool_t
xdr_rpc_loc_ni_vx_pos_mode_e_type(XDR * xdrs,rpc_loc_ni_vx_pos_mode_e_type * objp)462 xdr_rpc_loc_ni_vx_pos_mode_e_type (XDR *xdrs, rpc_loc_ni_vx_pos_mode_e_type *objp)
463 {
464 register int32_t *buf;
465
466 if (!xdr_enum (xdrs, (enum_t *) objp))
467 return FALSE;
468 return TRUE;
469 }
470
471 bool_t
xdr_rpc_loc_ni_vx_requester_id_s_type(XDR * xdrs,rpc_loc_ni_vx_requester_id_s_type * objp)472 xdr_rpc_loc_ni_vx_requester_id_s_type (XDR *xdrs, rpc_loc_ni_vx_requester_id_s_type *objp)
473 {
474 register int32_t *buf;
475
476 int i;
477 if (!xdr_u_char (xdrs, &objp->requester_id_length))
478 return FALSE;
479 if (!xdr_opaque (xdrs, objp->requester_id, 200))
480 return FALSE;
481 return TRUE;
482 }
483
484 bool_t
xdr_rpc_loc_ni_vx_notify_verify_req_s_type(XDR * xdrs,rpc_loc_ni_vx_notify_verify_req_s_type * objp)485 xdr_rpc_loc_ni_vx_notify_verify_req_s_type (XDR *xdrs, rpc_loc_ni_vx_notify_verify_req_s_type *objp)
486 {
487 register int32_t *buf;
488
489 if (!xdr_rpc_loc_ni_notify_verify_e_type (xdrs, &objp->notification_priv_type))
490 return FALSE;
491 if (!xdr_u_char (xdrs, &objp->pos_qos_incl))
492 return FALSE;
493 if (!xdr_u_char (xdrs, &objp->pos_qos))
494 return FALSE;
495 if (!xdr_rpc_uint32 (xdrs, &objp->num_fixes))
496 return FALSE;
497 if (!xdr_rpc_uint32 (xdrs, &objp->tbf))
498 return FALSE;
499 if (!xdr_rpc_loc_ni_vx_pos_mode_e_type (xdrs, &objp->pos_mode))
500 return FALSE;
501 if (!xdr_rpc_loc_ni_vx_requester_id_encoding_scheme_e_type (xdrs, &objp->encoding_scheme))
502 return FALSE;
503 if (!xdr_rpc_loc_ni_vx_requester_id_s_type (xdrs, &objp->requester_id))
504 return FALSE;
505 if (!xdr_rpc_uint16 (xdrs, &objp->user_resp_timer_val))
506 return FALSE;
507 return TRUE;
508 }
509
510 bool_t
xdr_rpc_loc_ni_supl_pos_method_e_type(XDR * xdrs,rpc_loc_ni_supl_pos_method_e_type * objp)511 xdr_rpc_loc_ni_supl_pos_method_e_type (XDR *xdrs, rpc_loc_ni_supl_pos_method_e_type *objp)
512 {
513 register int32_t *buf;
514
515 if (!xdr_enum (xdrs, (enum_t *) objp))
516 return FALSE;
517 return TRUE;
518 }
519
520 bool_t
xdr_rpc_loc_ni_supl_slp_session_id_s_type(XDR * xdrs,rpc_loc_ni_supl_slp_session_id_s_type * objp)521 xdr_rpc_loc_ni_supl_slp_session_id_s_type (XDR *xdrs, rpc_loc_ni_supl_slp_session_id_s_type *objp)
522 {
523 register int32_t *buf;
524
525 int i;
526 if (!xdr_u_char (xdrs, &objp->presence))
527 return FALSE;
528 if (!xdr_opaque (xdrs, objp->session_id, 4))
529 return FALSE;
530 if (!xdr_rpc_loc_server_info_s_type (xdrs, &objp->slp_address))
531 return FALSE;
532 return TRUE;
533 }
534
535 bool_t
xdr_rpc_loc_ni_requestor_id_s_type(XDR * xdrs,rpc_loc_ni_requestor_id_s_type * objp)536 xdr_rpc_loc_ni_requestor_id_s_type (XDR *xdrs, rpc_loc_ni_requestor_id_s_type *objp)
537 {
538 register int32_t *buf;
539
540 int i;
541 if (!xdr_u_char (xdrs, &objp->data_coding_scheme))
542 return FALSE;
543 if (!xdr_opaque (xdrs, objp->requestor_id_string, 200))
544 return FALSE;
545 if (!xdr_u_char (xdrs, &objp->string_len))
546 return FALSE;
547 return TRUE;
548 }
549
550 bool_t
xdr_rpc_loc_ni_supl_client_name_s_type(XDR * xdrs,rpc_loc_ni_supl_client_name_s_type * objp)551 xdr_rpc_loc_ni_supl_client_name_s_type (XDR *xdrs, rpc_loc_ni_supl_client_name_s_type *objp)
552 {
553 register int32_t *buf;
554
555 int i;
556 if (!xdr_u_char (xdrs, &objp->data_coding_scheme))
557 return FALSE;
558 if (!xdr_opaque (xdrs, objp->client_name_string, 64))
559 return FALSE;
560 if (!xdr_u_char (xdrs, &objp->string_len))
561 return FALSE;
562 return TRUE;
563 }
564
565 bool_t
xdr_rpc_loc_ni_supl_qop_s_type(XDR * xdrs,rpc_loc_ni_supl_qop_s_type * objp)566 xdr_rpc_loc_ni_supl_qop_s_type (XDR *xdrs, rpc_loc_ni_supl_qop_s_type *objp)
567 {
568 register int32_t *buf;
569
570 if (!xdr_u_char (xdrs, &objp->bit_mask))
571 return FALSE;
572 if (!xdr_u_char (xdrs, &objp->horacc))
573 return FALSE;
574 if (!xdr_u_char (xdrs, &objp->veracc))
575 return FALSE;
576 if (!xdr_rpc_uint16 (xdrs, &objp->maxLocAge))
577 return FALSE;
578 if (!xdr_u_char (xdrs, &objp->delay))
579 return FALSE;
580 return TRUE;
581 }
582
583 bool_t
xdr_rpc_loc_ni_supl_notify_verify_req_s_type(XDR * xdrs,rpc_loc_ni_supl_notify_verify_req_s_type * objp)584 xdr_rpc_loc_ni_supl_notify_verify_req_s_type (XDR *xdrs, rpc_loc_ni_supl_notify_verify_req_s_type *objp)
585 {
586 register int32_t *buf;
587
588 int i;
589 if (!xdr_rpc_loc_ni_notify_verify_e_type (xdrs, &objp->notification_priv_type))
590 return FALSE;
591 if (!xdr_rpc_uint16 (xdrs, &objp->flags))
592 return FALSE;
593 if (!xdr_rpc_loc_ni_supl_slp_session_id_s_type (xdrs, &objp->supl_slp_session_id))
594 return FALSE;
595 if (!xdr_opaque (xdrs, objp->supl_hash, 8))
596 return FALSE;
597 if (!xdr_rpc_loc_ni_datacoding_scheme_e_type (xdrs, &objp->datacoding_scheme))
598 return FALSE;
599 if (!xdr_rpc_loc_ni_supl_pos_method_e_type (xdrs, &objp->pos_method))
600 return FALSE;
601 if (!xdr_rpc_loc_ni_requestor_id_s_type (xdrs, &objp->requestor_id))
602 return FALSE;
603 if (!xdr_rpc_loc_ni_supl_client_name_s_type (xdrs, &objp->client_name))
604 return FALSE;
605 if (!xdr_rpc_loc_ni_supl_qop_s_type (xdrs, &objp->supl_qop))
606 return FALSE;
607 if (!xdr_rpc_uint16 (xdrs, &objp->user_response_timer))
608 return FALSE;
609 return TRUE;
610 }
611
612 bool_t
xdr_rpc_loc_ni_ext_client_address_s_type(XDR * xdrs,rpc_loc_ni_ext_client_address_s_type * objp)613 xdr_rpc_loc_ni_ext_client_address_s_type (XDR *xdrs, rpc_loc_ni_ext_client_address_s_type *objp)
614 {
615 register int32_t *buf;
616
617 int i;
618 if (!xdr_u_char (xdrs, &objp->ext_client_address_len))
619 return FALSE;
620 if (!xdr_opaque (xdrs, objp->ext_client_address, 20))
621 return FALSE;
622 return TRUE;
623 }
624
625 bool_t
xdr_rpc_loc_ni_location_type_e_type(XDR * xdrs,rpc_loc_ni_location_type_e_type * objp)626 xdr_rpc_loc_ni_location_type_e_type (XDR *xdrs, rpc_loc_ni_location_type_e_type *objp)
627 {
628 register int32_t *buf;
629
630 if (!xdr_enum (xdrs, (enum_t *) objp))
631 return FALSE;
632 return TRUE;
633 }
634
635 bool_t
xdr_rpc_loc_ni_deferred_location_s_type(XDR * xdrs,rpc_loc_ni_deferred_location_s_type * objp)636 xdr_rpc_loc_ni_deferred_location_s_type (XDR *xdrs, rpc_loc_ni_deferred_location_s_type *objp)
637 {
638 register int32_t *buf;
639
640 if (!xdr_u_char (xdrs, &objp->unused_bits))
641 return FALSE;
642 if (!xdr_u_char (xdrs, &objp->ms_available))
643 return FALSE;
644 return TRUE;
645 }
646
647 bool_t
xdr_rpc_loc_ni_codeword_string_s_type(XDR * xdrs,rpc_loc_ni_codeword_string_s_type * objp)648 xdr_rpc_loc_ni_codeword_string_s_type (XDR *xdrs, rpc_loc_ni_codeword_string_s_type *objp)
649 {
650 register int32_t *buf;
651
652 int i;
653 if (!xdr_u_char (xdrs, &objp->data_coding_scheme))
654 return FALSE;
655 if (!xdr_opaque (xdrs, objp->lcs_codeword_string, 20))
656 return FALSE;
657 if (!xdr_u_char (xdrs, &objp->string_len))
658 return FALSE;
659 return TRUE;
660 }
661
662 bool_t
xdr_rpc_loc_ni_service_type_id_s_type(XDR * xdrs,rpc_loc_ni_service_type_id_s_type * objp)663 xdr_rpc_loc_ni_service_type_id_s_type (XDR *xdrs, rpc_loc_ni_service_type_id_s_type *objp)
664 {
665 register int32_t *buf;
666
667 if (!xdr_u_char (xdrs, &objp->lcs_service_type_id))
668 return FALSE;
669 return TRUE;
670 }
671
672 bool_t
xdr_rpc_loc_ni_umts_cp_notify_verify_req_s_type(XDR * xdrs,rpc_loc_ni_umts_cp_notify_verify_req_s_type * objp)673 xdr_rpc_loc_ni_umts_cp_notify_verify_req_s_type (XDR *xdrs, rpc_loc_ni_umts_cp_notify_verify_req_s_type *objp)
674 {
675 register int32_t *buf;
676
677 int i;
678 if (!xdr_rpc_loc_ni_notify_verify_e_type (xdrs, &objp->notification_priv_type))
679 return FALSE;
680 if (!xdr_u_char (xdrs, &objp->invoke_id))
681 return FALSE;
682 if (!xdr_rpc_uint16 (xdrs, &objp->flags))
683 return FALSE;
684 if (!xdr_u_char (xdrs, &objp->notification_length))
685 return FALSE;
686 if (!xdr_opaque (xdrs, objp->notification_text, 64))
687 return FALSE;
688 if (!xdr_rpc_loc_ni_datacoding_scheme_e_type (xdrs, &objp->datacoding_scheme))
689 return FALSE;
690 if (!xdr_rpc_loc_ni_ext_client_address_s_type (xdrs, &objp->ext_client_address_data))
691 return FALSE;
692 if (!xdr_rpc_loc_ni_location_type_e_type (xdrs, &objp->location_type))
693 return FALSE;
694 if (!xdr_rpc_loc_ni_deferred_location_s_type (xdrs, &objp->deferred_location))
695 return FALSE;
696 if (!xdr_rpc_loc_ni_requestor_id_s_type (xdrs, &objp->requestor_id))
697 return FALSE;
698 if (!xdr_rpc_loc_ni_codeword_string_s_type (xdrs, &objp->codeword_string))
699 return FALSE;
700 if (!xdr_rpc_loc_ni_service_type_id_s_type (xdrs, &objp->service_type_id))
701 return FALSE;
702 if (!xdr_rpc_uint16 (xdrs, &objp->user_response_timer))
703 return FALSE;
704 return TRUE;
705 }
706
707 bool_t
xdr_rpc_loc_ni_service_interaction_e_type(XDR * xdrs,rpc_loc_ni_service_interaction_e_type * objp)708 xdr_rpc_loc_ni_service_interaction_e_type (XDR *xdrs, rpc_loc_ni_service_interaction_e_type *objp)
709 {
710 register int32_t *buf;
711
712 if (!xdr_enum (xdrs, (enum_t *) objp))
713 return FALSE;
714 return TRUE;
715 }
716
717 bool_t
xdr_rpc_loc_ni_vx_service_interaction_req_s_type(XDR * xdrs,rpc_loc_ni_vx_service_interaction_req_s_type * objp)718 xdr_rpc_loc_ni_vx_service_interaction_req_s_type (XDR *xdrs, rpc_loc_ni_vx_service_interaction_req_s_type *objp)
719 {
720 register int32_t *buf;
721
722 if (!xdr_rpc_loc_ni_vx_notify_verify_req_s_type (xdrs, &objp->ni_vx_req))
723 return FALSE;
724 if (!xdr_rpc_loc_ni_service_interaction_e_type (xdrs, &objp->service_interation_type))
725 return FALSE;
726 return TRUE;
727 }
728
729 bool_t
xdr_rpc_loc_ni_event_payload_u_type(XDR * xdrs,rpc_loc_ni_event_payload_u_type * objp)730 xdr_rpc_loc_ni_event_payload_u_type (XDR *xdrs, rpc_loc_ni_event_payload_u_type *objp)
731 {
732 register int32_t *buf;
733
734 if (!xdr_rpc_loc_ni_event_e_type (xdrs, &objp->disc))
735 return FALSE;
736 switch (objp->disc) {
737 case RPC_LOC_NI_EVENT_VX_NOTIFY_VERIFY_REQ:
738 if (!xdr_rpc_loc_ni_vx_notify_verify_req_s_type (xdrs, &objp->rpc_loc_ni_event_payload_u_type_u.vx_req))
739 return FALSE;
740 break;
741 case RPC_LOC_NI_EVENT_SUPL_NOTIFY_VERIFY_REQ:
742 if (!xdr_rpc_loc_ni_supl_notify_verify_req_s_type (xdrs, &objp->rpc_loc_ni_event_payload_u_type_u.supl_req))
743 return FALSE;
744 break;
745 case RPC_LOC_NI_EVENT_UMTS_CP_NOTIFY_VERIFY_REQ:
746 if (!xdr_rpc_loc_ni_umts_cp_notify_verify_req_s_type (xdrs, &objp->rpc_loc_ni_event_payload_u_type_u.umts_cp_req))
747 return FALSE;
748 break;
749 case RPC_LOC_NI_EVENT_VX_SERVICE_INTERACTION_REQ:
750 if (!xdr_rpc_loc_ni_vx_service_interaction_req_s_type (xdrs, &objp->rpc_loc_ni_event_payload_u_type_u.service_interaction_req))
751 return FALSE;
752 break;
753 default:
754 break;
755 }
756 return TRUE;
757 }
758
759 bool_t
xdr_rpc_loc_ni_event_s_type(XDR * xdrs,rpc_loc_ni_event_s_type * objp)760 xdr_rpc_loc_ni_event_s_type (XDR *xdrs, rpc_loc_ni_event_s_type *objp)
761 {
762 register int32_t *buf;
763
764 if (!xdr_rpc_loc_ni_event_e_type (xdrs, &objp->event))
765 return FALSE;
766 if (!xdr_rpc_loc_ni_event_payload_u_type (xdrs, &objp->payload))
767 return FALSE;
768 return TRUE;
769 }
770
771 bool_t
xdr_rpc_loc_assist_data_request_e_type(XDR * xdrs,rpc_loc_assist_data_request_e_type * objp)772 xdr_rpc_loc_assist_data_request_e_type (XDR *xdrs, rpc_loc_assist_data_request_e_type *objp)
773 {
774 register int32_t *buf;
775
776 if (!xdr_enum (xdrs, (enum_t *) objp))
777 return FALSE;
778 return TRUE;
779 }
780
781 bool_t
xdr_rpc_struct_loc_time_download_source_s_type_servers_ptr(XDR * xdrs,rpc_struct_loc_time_download_source_s_type_servers_ptr * objp)782 xdr_rpc_struct_loc_time_download_source_s_type_servers_ptr (XDR *xdrs, rpc_struct_loc_time_download_source_s_type_servers_ptr *objp)
783 {
784 register int32_t *buf;
785
786 if (!xdr_string (xdrs, objp, 256))
787 return FALSE;
788 return TRUE;
789 }
790
791 bool_t
xdr_rpc_struct_loc_time_download_source_s_type_servers(XDR * xdrs,rpc_struct_loc_time_download_source_s_type_servers objp)792 xdr_rpc_struct_loc_time_download_source_s_type_servers (XDR *xdrs, rpc_struct_loc_time_download_source_s_type_servers objp)
793 {
794 register int32_t *buf;
795
796 if (!xdr_vector (xdrs, (char *)objp, 3,
797 sizeof (rpc_struct_loc_time_download_source_s_type_servers_ptr), (xdrproc_t) xdr_rpc_struct_loc_time_download_source_s_type_servers_ptr))
798 return FALSE;
799 return TRUE;
800 }
801
802 bool_t
xdr_rpc_loc_time_download_source_s_type(XDR * xdrs,rpc_loc_time_download_source_s_type * objp)803 xdr_rpc_loc_time_download_source_s_type (XDR *xdrs, rpc_loc_time_download_source_s_type *objp)
804 {
805 register int32_t *buf;
806
807 if (!xdr_rpc_uint32 (xdrs, &objp->delay_threshold))
808 return FALSE;
809 if (!xdr_rpc_struct_loc_time_download_source_s_type_servers (xdrs, objp->servers))
810 return FALSE;
811 return TRUE;
812 }
813
814 bool_t
xdr_rpc_struct_loc_predicted_orbits_data_source_s_type_servers_ptr(XDR * xdrs,rpc_struct_loc_predicted_orbits_data_source_s_type_servers_ptr * objp)815 xdr_rpc_struct_loc_predicted_orbits_data_source_s_type_servers_ptr (XDR *xdrs, rpc_struct_loc_predicted_orbits_data_source_s_type_servers_ptr *objp)
816 {
817 register int32_t *buf;
818
819 if (!xdr_string (xdrs, objp, 256))
820 return FALSE;
821 return TRUE;
822 }
823
824 bool_t
xdr_rpc_struct_loc_predicted_orbits_data_source_s_type_servers(XDR * xdrs,rpc_struct_loc_predicted_orbits_data_source_s_type_servers objp)825 xdr_rpc_struct_loc_predicted_orbits_data_source_s_type_servers (XDR *xdrs, rpc_struct_loc_predicted_orbits_data_source_s_type_servers objp)
826 {
827 register int32_t *buf;
828
829 if (!xdr_vector (xdrs, (char *)objp, 3,
830 sizeof (rpc_struct_loc_predicted_orbits_data_source_s_type_servers_ptr), (xdrproc_t) xdr_rpc_struct_loc_predicted_orbits_data_source_s_type_servers_ptr))
831 return FALSE;
832 return TRUE;
833 }
834
835 bool_t
xdr_rpc_loc_predicted_orbits_data_source_s_type(XDR * xdrs,rpc_loc_predicted_orbits_data_source_s_type * objp)836 xdr_rpc_loc_predicted_orbits_data_source_s_type (XDR *xdrs, rpc_loc_predicted_orbits_data_source_s_type *objp)
837 {
838 register int32_t *buf;
839
840 if (!xdr_rpc_uint32 (xdrs, &objp->max_file_size))
841 return FALSE;
842 if (!xdr_rpc_uint32 (xdrs, &objp->max_part_size))
843 return FALSE;
844 if (!xdr_rpc_struct_loc_predicted_orbits_data_source_s_type_servers (xdrs, objp->servers))
845 return FALSE;
846 return TRUE;
847 }
848
849 bool_t
xdr_rpc_loc_pos_inj_request_s_type(XDR * xdrs,rpc_loc_pos_inj_request_s_type * objp)850 xdr_rpc_loc_pos_inj_request_s_type (XDR *xdrs, rpc_loc_pos_inj_request_s_type *objp)
851 {
852 register int32_t *buf;
853
854 if (!xdr_rpc_uint32 (xdrs, &objp->flags))
855 return FALSE;
856 if (!xdr_double (xdrs, &objp->latitude))
857 return FALSE;
858 if (!xdr_double (xdrs, &objp->longitude))
859 return FALSE;
860 if (!xdr_rpc_uint32 (xdrs, &objp->position_uncertainty))
861 return FALSE;
862 if (!xdr_rpc_uint64 (xdrs, &objp->timestamp))
863 return FALSE;
864 return TRUE;
865 }
866
867 bool_t
xdr_rpc_loc_assist_data_request_payload_u_type(XDR * xdrs,rpc_loc_assist_data_request_payload_u_type * objp)868 xdr_rpc_loc_assist_data_request_payload_u_type (XDR *xdrs, rpc_loc_assist_data_request_payload_u_type *objp)
869 {
870 register int32_t *buf;
871
872 if (!xdr_rpc_loc_assist_data_request_e_type (xdrs, &objp->disc))
873 return FALSE;
874 switch (objp->disc) {
875 case RPC_LOC_ASSIST_DATA_TIME_REQ:
876 if (!xdr_rpc_loc_time_download_source_s_type (xdrs, &objp->rpc_loc_assist_data_request_payload_u_type_u.time_download))
877 return FALSE;
878 break;
879 case RPC_LOC_ASSIST_DATA_PREDICTED_ORBITS_REQ:
880 if (!xdr_rpc_loc_predicted_orbits_data_source_s_type (xdrs, &objp->rpc_loc_assist_data_request_payload_u_type_u.data_download))
881 return FALSE;
882 break;
883 case RPC_LOC_ASSIST_DATA_POSITION_INJECTION_REQ:
884 if (!xdr_rpc_loc_pos_inj_request_s_type (xdrs, &objp->rpc_loc_assist_data_request_payload_u_type_u.pos_injection))
885 return FALSE;
886 break;
887 default:
888 break;
889 }
890 return TRUE;
891 }
892
893 bool_t
xdr_rpc_loc_assist_data_request_s_type(XDR * xdrs,rpc_loc_assist_data_request_s_type * objp)894 xdr_rpc_loc_assist_data_request_s_type (XDR *xdrs, rpc_loc_assist_data_request_s_type *objp)
895 {
896 register int32_t *buf;
897
898 if (!xdr_rpc_loc_assist_data_request_e_type (xdrs, &objp->event))
899 return FALSE;
900 if (!xdr_rpc_loc_assist_data_request_payload_u_type (xdrs, &objp->payload))
901 return FALSE;
902 return TRUE;
903 }
904
905 bool_t
xdr_rpc_loc_server_connection_handle(XDR * xdrs,rpc_loc_server_connection_handle * objp)906 xdr_rpc_loc_server_connection_handle (XDR *xdrs, rpc_loc_server_connection_handle *objp)
907 {
908 register int32_t *buf;
909
910 if (!xdr_rpc_uint32 (xdrs, objp))
911 return FALSE;
912 return TRUE;
913 }
914
915 bool_t
xdr_rpc_loc_server_protocol_e_type(XDR * xdrs,rpc_loc_server_protocol_e_type * objp)916 xdr_rpc_loc_server_protocol_e_type (XDR *xdrs, rpc_loc_server_protocol_e_type *objp)
917 {
918 register int32_t *buf;
919
920 if (!xdr_enum (xdrs, (enum_t *) objp))
921 return FALSE;
922 return TRUE;
923 }
924
925 bool_t
xdr_rpc_loc_server_connection_e_type(XDR * xdrs,rpc_loc_server_connection_e_type * objp)926 xdr_rpc_loc_server_connection_e_type (XDR *xdrs, rpc_loc_server_connection_e_type *objp)
927 {
928 register int32_t *buf;
929
930 if (!xdr_enum (xdrs, (enum_t *) objp))
931 return FALSE;
932 return TRUE;
933 }
934
935 bool_t
xdr_rpc_loc_server_request_e_type(XDR * xdrs,rpc_loc_server_request_e_type * objp)936 xdr_rpc_loc_server_request_e_type (XDR *xdrs, rpc_loc_server_request_e_type *objp)
937 {
938 register int32_t *buf;
939
940 if (!xdr_enum (xdrs, (enum_t *) objp))
941 return FALSE;
942 return TRUE;
943 }
944
945 bool_t
xdr_rpc_loc_server_open_req_s_type(XDR * xdrs,rpc_loc_server_open_req_s_type * objp)946 xdr_rpc_loc_server_open_req_s_type (XDR *xdrs, rpc_loc_server_open_req_s_type *objp)
947 {
948 register int32_t *buf;
949
950 if (!xdr_rpc_loc_server_connection_handle (xdrs, &objp->conn_handle))
951 return FALSE;
952 if (!xdr_rpc_loc_server_protocol_e_type (xdrs, &objp->protocol))
953 return FALSE;
954 return TRUE;
955 }
956
957 bool_t
xdr_rpc_loc_server_multi_open_req_s_type(XDR * xdrs,rpc_loc_server_multi_open_req_s_type * objp)958 xdr_rpc_loc_server_multi_open_req_s_type (XDR *xdrs, rpc_loc_server_multi_open_req_s_type *objp)
959 {
960 register int32_t *buf;
961
962 if (!xdr_rpc_loc_server_connection_handle (xdrs, &objp->conn_handle))
963 return FALSE;
964 if (!xdr_rpc_loc_server_protocol_e_type (xdrs, &objp->protocol))
965 return FALSE;
966 if (!xdr_rpc_loc_server_connection_e_type (xdrs, &objp->connection_type))
967 return FALSE;
968 return TRUE;
969 }
970
971 bool_t
xdr_rpc_loc_server_close_req_s_type(XDR * xdrs,rpc_loc_server_close_req_s_type * objp)972 xdr_rpc_loc_server_close_req_s_type (XDR *xdrs, rpc_loc_server_close_req_s_type *objp)
973 {
974 register int32_t *buf;
975
976 if (!xdr_rpc_loc_server_connection_handle (xdrs, &objp->conn_handle))
977 return FALSE;
978 return TRUE;
979 }
980
981 bool_t
xdr_rpc_loc_server_request_u_type(XDR * xdrs,rpc_loc_server_request_u_type * objp)982 xdr_rpc_loc_server_request_u_type (XDR *xdrs, rpc_loc_server_request_u_type *objp)
983 {
984 register int32_t *buf;
985
986 if (!xdr_rpc_loc_server_request_e_type (xdrs, &objp->disc))
987 return FALSE;
988 switch (objp->disc) {
989 case RPC_LOC_SERVER_REQUEST_OPEN:
990 if (!xdr_rpc_loc_server_open_req_s_type (xdrs, &objp->rpc_loc_server_request_u_type_u.open_req))
991 return FALSE;
992 break;
993 case RPC_LOC_SERVER_REQUEST_CLOSE:
994 if (!xdr_rpc_loc_server_close_req_s_type (xdrs, &objp->rpc_loc_server_request_u_type_u.close_req))
995 return FALSE;
996 break;
997 case RPC_LOC_SERVER_REQUEST_MULTI_OPEN:
998 if (!xdr_rpc_loc_server_multi_open_req_s_type (xdrs, &objp->rpc_loc_server_request_u_type_u.multi_open_req))
999 return FALSE;
1000 break;
1001 default:
1002 break;
1003 }
1004 return TRUE;
1005 }
1006
1007 bool_t
xdr_rpc_loc_server_request_s_type(XDR * xdrs,rpc_loc_server_request_s_type * objp)1008 xdr_rpc_loc_server_request_s_type (XDR *xdrs, rpc_loc_server_request_s_type *objp)
1009 {
1010 register int32_t *buf;
1011
1012 if (!xdr_rpc_loc_server_request_e_type (xdrs, &objp->event))
1013 return FALSE;
1014 if (!xdr_rpc_loc_server_request_u_type (xdrs, &objp->payload))
1015 return FALSE;
1016 return TRUE;
1017 }
1018
1019 bool_t
xdr_rpc_loc_qwip_request_e_type(XDR * xdrs,rpc_loc_qwip_request_e_type * objp)1020 xdr_rpc_loc_qwip_request_e_type (XDR *xdrs, rpc_loc_qwip_request_e_type *objp)
1021 {
1022 register int32_t *buf;
1023
1024 if (!xdr_enum (xdrs, (enum_t *) objp))
1025 return FALSE;
1026 return TRUE;
1027 }
1028
1029 bool_t
xdr_rpc_loc_qwip_request_s_type(XDR * xdrs,rpc_loc_qwip_request_s_type * objp)1030 xdr_rpc_loc_qwip_request_s_type (XDR *xdrs, rpc_loc_qwip_request_s_type *objp)
1031 {
1032 register int32_t *buf;
1033
1034 if (!xdr_rpc_loc_qwip_request_e_type (xdrs, &objp->request_type))
1035 return FALSE;
1036 if (!xdr_rpc_uint16 (xdrs, &objp->tbf_ms))
1037 return FALSE;
1038 return TRUE;
1039 }
1040
1041 bool_t
xdr_rpc_loc_reserved_payload_s_type(XDR * xdrs,rpc_loc_reserved_payload_s_type * objp)1042 xdr_rpc_loc_reserved_payload_s_type (XDR *xdrs, rpc_loc_reserved_payload_s_type *objp)
1043 {
1044 register int32_t *buf;
1045
1046 if (!xdr_rpc_uint16 (xdrs, &objp->data_size))
1047 return FALSE;
1048 if (!xdr_bytes (xdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0))
1049 return FALSE;
1050 return TRUE;
1051 }
1052
1053 bool_t
xdr_rpc_loc_ioctl_e_type(XDR * xdrs,rpc_loc_ioctl_e_type * objp)1054 xdr_rpc_loc_ioctl_e_type (XDR *xdrs, rpc_loc_ioctl_e_type *objp)
1055 {
1056 register int32_t *buf;
1057
1058 if (!xdr_enum (xdrs, (enum_t *) objp))
1059 return FALSE;
1060 return TRUE;
1061 }
1062
1063 bool_t
xdr_rpc_loc_api_version_s_type(XDR * xdrs,rpc_loc_api_version_s_type * objp)1064 xdr_rpc_loc_api_version_s_type (XDR *xdrs, rpc_loc_api_version_s_type *objp)
1065 {
1066 register int32_t *buf;
1067
1068 if (!xdr_u_char (xdrs, &objp->major))
1069 return FALSE;
1070 if (!xdr_u_char (xdrs, &objp->minor))
1071 return FALSE;
1072 return TRUE;
1073 }
1074
1075 bool_t
xdr_rpc_loc_fix_recurrence_e_type(XDR * xdrs,rpc_loc_fix_recurrence_e_type * objp)1076 xdr_rpc_loc_fix_recurrence_e_type (XDR *xdrs, rpc_loc_fix_recurrence_e_type *objp)
1077 {
1078 register int32_t *buf;
1079
1080 if (!xdr_enum (xdrs, (enum_t *) objp))
1081 return FALSE;
1082 return TRUE;
1083 }
1084
1085 bool_t
xdr_rpc_loc_operation_mode_e_type(XDR * xdrs,rpc_loc_operation_mode_e_type * objp)1086 xdr_rpc_loc_operation_mode_e_type (XDR *xdrs, rpc_loc_operation_mode_e_type *objp)
1087 {
1088 register int32_t *buf;
1089
1090 if (!xdr_enum (xdrs, (enum_t *) objp))
1091 return FALSE;
1092 return TRUE;
1093 }
1094
1095 bool_t
xdr_rpc_loc_notify_e_type(XDR * xdrs,rpc_loc_notify_e_type * objp)1096 xdr_rpc_loc_notify_e_type (XDR *xdrs, rpc_loc_notify_e_type *objp)
1097 {
1098 register int32_t *buf;
1099
1100 if (!xdr_enum (xdrs, (enum_t *) objp))
1101 return FALSE;
1102 return TRUE;
1103 }
1104
1105 bool_t
xdr_rpc_loc_fix_criteria_s_type(XDR * xdrs,rpc_loc_fix_criteria_s_type * objp)1106 xdr_rpc_loc_fix_criteria_s_type (XDR *xdrs, rpc_loc_fix_criteria_s_type *objp)
1107 {
1108 register int32_t *buf;
1109
1110 if (!xdr_rpc_uint32 (xdrs, &objp->valid_mask))
1111 return FALSE;
1112 if (!xdr_rpc_loc_fix_recurrence_e_type (xdrs, &objp->recurrence_type))
1113 return FALSE;
1114 if (!xdr_rpc_loc_operation_mode_e_type (xdrs, &objp->preferred_operation_mode))
1115 return FALSE;
1116 if (!xdr_rpc_uint32 (xdrs, &objp->preferred_accuracy))
1117 return FALSE;
1118 if (!xdr_rpc_uint32 (xdrs, &objp->preferred_response_time))
1119 return FALSE;
1120 if (!xdr_rpc_boolean (xdrs, &objp->intermediate_pos_report_enabled))
1121 return FALSE;
1122 if (!xdr_rpc_loc_notify_e_type (xdrs, &objp->notify_type))
1123 return FALSE;
1124 if (!xdr_rpc_uint32 (xdrs, &objp->min_interval))
1125 return FALSE;
1126 if (!xdr_float (xdrs, &objp->min_distance))
1127 return FALSE;
1128 if (!xdr_rpc_uint32 (xdrs, &objp->min_dist_sample_interval))
1129 return FALSE;
1130 return TRUE;
1131 }
1132
1133 bool_t
xdr_rpc_loc_ni_user_resp_e_type(XDR * xdrs,rpc_loc_ni_user_resp_e_type * objp)1134 xdr_rpc_loc_ni_user_resp_e_type (XDR *xdrs, rpc_loc_ni_user_resp_e_type *objp)
1135 {
1136 register int32_t *buf;
1137
1138 if (!xdr_enum (xdrs, (enum_t *) objp))
1139 return FALSE;
1140 return TRUE;
1141 }
1142
1143 bool_t
xdr_rpc_loc_user_verify_s_type(XDR * xdrs,rpc_loc_user_verify_s_type * objp)1144 xdr_rpc_loc_user_verify_s_type (XDR *xdrs, rpc_loc_user_verify_s_type *objp)
1145 {
1146 register int32_t *buf;
1147
1148 if (!xdr_rpc_loc_ni_user_resp_e_type (xdrs, &objp->user_resp))
1149 return FALSE;
1150 if (!xdr_rpc_loc_ni_event_s_type (xdrs, &objp->ni_event_pass_back))
1151 return FALSE;
1152 return TRUE;
1153 }
1154
1155 bool_t
xdr_rpc_loc_predicted_orbits_data_format_e_type(XDR * xdrs,rpc_loc_predicted_orbits_data_format_e_type * objp)1156 xdr_rpc_loc_predicted_orbits_data_format_e_type (XDR *xdrs, rpc_loc_predicted_orbits_data_format_e_type *objp)
1157 {
1158 register int32_t *buf;
1159
1160 if (!xdr_enum (xdrs, (enum_t *) objp))
1161 return FALSE;
1162 return TRUE;
1163 }
1164
1165 bool_t
xdr_rpc_loc_predicted_orbits_data_s_type(XDR * xdrs,rpc_loc_predicted_orbits_data_s_type * objp)1166 xdr_rpc_loc_predicted_orbits_data_s_type (XDR *xdrs, rpc_loc_predicted_orbits_data_s_type *objp)
1167 {
1168 register int32_t *buf;
1169
1170 if (!xdr_rpc_loc_predicted_orbits_data_format_e_type (xdrs, &objp->format_type))
1171 return FALSE;
1172 if (!xdr_rpc_uint32 (xdrs, &objp->total_size))
1173 return FALSE;
1174 if (!xdr_rpc_uint8 (xdrs, &objp->total_parts))
1175 return FALSE;
1176 if (!xdr_rpc_uint8 (xdrs, &objp->part))
1177 return FALSE;
1178 if (!xdr_rpc_uint16 (xdrs, &objp->part_len))
1179 return FALSE;
1180 if (!xdr_bytes (xdrs, (char **)&objp->data_ptr.data_ptr_val, (u_int *) &objp->data_ptr.data_ptr_len, ~0))
1181 return FALSE;
1182 return TRUE;
1183 }
1184
1185 bool_t
xdr_rpc_loc_predicted_orbits_data_validity_report_s_type(XDR * xdrs,rpc_loc_predicted_orbits_data_validity_report_s_type * objp)1186 xdr_rpc_loc_predicted_orbits_data_validity_report_s_type (XDR *xdrs, rpc_loc_predicted_orbits_data_validity_report_s_type *objp)
1187 {
1188 register int32_t *buf;
1189
1190 if (!xdr_rpc_uint64 (xdrs, &objp->start_time_utc))
1191 return FALSE;
1192 if (!xdr_rpc_uint16 (xdrs, &objp->valid_duration_hrs))
1193 return FALSE;
1194 return TRUE;
1195 }
1196
1197 bool_t
xdr_rpc_loc_predicted_orbits_auto_download_config_s_type(XDR * xdrs,rpc_loc_predicted_orbits_auto_download_config_s_type * objp)1198 xdr_rpc_loc_predicted_orbits_auto_download_config_s_type (XDR *xdrs, rpc_loc_predicted_orbits_auto_download_config_s_type *objp)
1199 {
1200 register int32_t *buf;
1201
1202 if (!xdr_rpc_boolean (xdrs, &objp->enable))
1203 return FALSE;
1204 if (!xdr_u_char (xdrs, &objp->auto_check_every_hrs))
1205 return FALSE;
1206 return TRUE;
1207 }
1208
1209 bool_t
xdr_rpc_loc_assist_data_time_s_type(XDR * xdrs,rpc_loc_assist_data_time_s_type * objp)1210 xdr_rpc_loc_assist_data_time_s_type (XDR *xdrs, rpc_loc_assist_data_time_s_type *objp)
1211 {
1212 register int32_t *buf;
1213
1214 if (!xdr_rpc_uint64 (xdrs, &objp->time_utc))
1215 return FALSE;
1216 if (!xdr_rpc_uint32 (xdrs, &objp->uncertainty))
1217 return FALSE;
1218 return TRUE;
1219 }
1220
1221 bool_t
xdr_rpc_loc_assist_pos_valid_mask_type(XDR * xdrs,rpc_loc_assist_pos_valid_mask_type * objp)1222 xdr_rpc_loc_assist_pos_valid_mask_type (XDR *xdrs, rpc_loc_assist_pos_valid_mask_type *objp)
1223 {
1224 register int32_t *buf;
1225
1226 if (!xdr_rpc_uint64 (xdrs, objp))
1227 return FALSE;
1228 return TRUE;
1229 }
1230
1231 bool_t
xdr_rpc_loc_assist_data_pos_s_type(XDR * xdrs,rpc_loc_assist_data_pos_s_type * objp)1232 xdr_rpc_loc_assist_data_pos_s_type (XDR *xdrs, rpc_loc_assist_data_pos_s_type *objp)
1233 {
1234 register int32_t *buf;
1235
1236 if (!xdr_rpc_loc_assist_pos_valid_mask_type (xdrs, &objp->valid_mask))
1237 return FALSE;
1238 if (!xdr_rpc_uint64 (xdrs, &objp->timestamp_utc))
1239 return FALSE;
1240 if (!xdr_double (xdrs, &objp->latitude))
1241 return FALSE;
1242 if (!xdr_double (xdrs, &objp->longitude))
1243 return FALSE;
1244 if (!xdr_float (xdrs, &objp->altitude_wrt_ellipsoid))
1245 return FALSE;
1246 if (!xdr_float (xdrs, &objp->altitude_wrt_mean_sea_level))
1247 return FALSE;
1248 if (!xdr_float (xdrs, &objp->hor_unc_circular))
1249 return FALSE;
1250 if (!xdr_float (xdrs, &objp->vert_unc))
1251 return FALSE;
1252 if (!xdr_u_char (xdrs, &objp->confidence_horizontal))
1253 return FALSE;
1254 if (!xdr_u_char (xdrs, &objp->confidence_vertical))
1255 return FALSE;
1256 if (!xdr_rpc_int32 (xdrs, &objp->timestamp_age))
1257 return FALSE;
1258 return TRUE;
1259 }
1260
1261 bool_t
xdr_rpc_loc_server_open_status_e_type(XDR * xdrs,rpc_loc_server_open_status_e_type * objp)1262 xdr_rpc_loc_server_open_status_e_type (XDR *xdrs, rpc_loc_server_open_status_e_type *objp)
1263 {
1264 register int32_t *buf;
1265
1266 if (!xdr_enum (xdrs, (enum_t *) objp))
1267 return FALSE;
1268 return TRUE;
1269 }
1270
1271 bool_t
xdr_rpc_loc_server_pdp_type_e_type(XDR * xdrs,rpc_loc_server_pdp_type_e_type * objp)1272 xdr_rpc_loc_server_pdp_type_e_type (XDR *xdrs, rpc_loc_server_pdp_type_e_type *objp)
1273 {
1274 register int32_t *buf;
1275
1276 if (!xdr_enum (xdrs, (enum_t *) objp))
1277 return FALSE;
1278 return TRUE;
1279 }
1280
1281 bool_t
xdr_rpc_loc_server_open_status_s_type(XDR * xdrs,rpc_loc_server_open_status_s_type * objp)1282 xdr_rpc_loc_server_open_status_s_type (XDR *xdrs, rpc_loc_server_open_status_s_type *objp)
1283 {
1284 register int32_t *buf;
1285
1286 int i;
1287 if (!xdr_rpc_loc_server_connection_handle (xdrs, &objp->conn_handle))
1288 return FALSE;
1289 if (!xdr_rpc_loc_server_open_status_e_type (xdrs, &objp->open_status))
1290 return FALSE;
1291 if (!xdr_opaque (xdrs, objp->apn_name, 100))
1292 return FALSE;
1293 return TRUE;
1294 }
1295
1296 bool_t
xdr_rpc_loc_server_multi_open_status_s_type(XDR * xdrs,rpc_loc_server_multi_open_status_s_type * objp)1297 xdr_rpc_loc_server_multi_open_status_s_type (XDR *xdrs, rpc_loc_server_multi_open_status_s_type *objp)
1298 {
1299 register int32_t *buf;
1300
1301 int i;
1302 if (!xdr_rpc_loc_server_connection_handle (xdrs, &objp->conn_handle))
1303 return FALSE;
1304 if (!xdr_rpc_loc_server_open_status_e_type (xdrs, &objp->open_status))
1305 return FALSE;
1306 if (!xdr_rpc_loc_server_pdp_type_e_type (xdrs, &objp->pdp_type))
1307 return FALSE;
1308 if (!xdr_opaque (xdrs, objp->apn_name, 100))
1309 return FALSE;
1310 return TRUE;
1311 }
1312
1313 bool_t
xdr_rpc_loc_server_close_status_e_type(XDR * xdrs,rpc_loc_server_close_status_e_type * objp)1314 xdr_rpc_loc_server_close_status_e_type (XDR *xdrs, rpc_loc_server_close_status_e_type *objp)
1315 {
1316 register int32_t *buf;
1317
1318 if (!xdr_enum (xdrs, (enum_t *) objp))
1319 return FALSE;
1320 return TRUE;
1321 }
1322
1323 bool_t
xdr_rpc_loc_server_close_status_s_type(XDR * xdrs,rpc_loc_server_close_status_s_type * objp)1324 xdr_rpc_loc_server_close_status_s_type (XDR *xdrs, rpc_loc_server_close_status_s_type *objp)
1325 {
1326 register int32_t *buf;
1327
1328 if (!xdr_rpc_loc_server_connection_handle (xdrs, &objp->conn_handle))
1329 return FALSE;
1330 if (!xdr_rpc_loc_server_close_status_e_type (xdrs, &objp->close_status))
1331 return FALSE;
1332 return TRUE;
1333 }
1334
1335 bool_t
xdr_rpc_loc_wiper_fix_time_s_type(XDR * xdrs,rpc_loc_wiper_fix_time_s_type * objp)1336 xdr_rpc_loc_wiper_fix_time_s_type (XDR *xdrs, rpc_loc_wiper_fix_time_s_type *objp)
1337 {
1338 register int32_t *buf;
1339
1340 if (!xdr_rpc_uint32 (xdrs, &objp->slow_clock_count))
1341 return FALSE;
1342 return TRUE;
1343 }
1344
1345 bool_t
xdr_rpc_loc_wiper_fix_pos_s_type(XDR * xdrs,rpc_loc_wiper_fix_pos_s_type * objp)1346 xdr_rpc_loc_wiper_fix_pos_s_type (XDR *xdrs, rpc_loc_wiper_fix_pos_s_type *objp)
1347 {
1348 register int32_t *buf;
1349
1350 if (!xdr_rpc_int32 (xdrs, &objp->lat))
1351 return FALSE;
1352 if (!xdr_rpc_int32 (xdrs, &objp->lon))
1353 return FALSE;
1354 if (!xdr_rpc_uint16 (xdrs, &objp->HEPE))
1355 return FALSE;
1356 if (!xdr_rpc_uint8 (xdrs, &objp->num_of_aps_used))
1357 return FALSE;
1358 if (!xdr_rpc_uint8 (xdrs, &objp->fix_error_code))
1359 return FALSE;
1360 return TRUE;
1361 }
1362
1363 bool_t
xdr_rpc_loc_wiper_ap_info_s_type(XDR * xdrs,rpc_loc_wiper_ap_info_s_type * objp)1364 xdr_rpc_loc_wiper_ap_info_s_type (XDR *xdrs, rpc_loc_wiper_ap_info_s_type *objp)
1365 {
1366 register int32_t *buf;
1367
1368 int i;
1369 if (!xdr_opaque (xdrs, objp->mac_addr, 6))
1370 return FALSE;
1371 if (!xdr_rpc_int32 (xdrs, &objp->rssi))
1372 return FALSE;
1373 if (!xdr_rpc_uint16 (xdrs, &objp->channel))
1374 return FALSE;
1375 if (!xdr_rpc_uint8 (xdrs, &objp->ap_qualifier))
1376 return FALSE;
1377 return TRUE;
1378 }
1379
1380 bool_t
xdr_rpc_loc_wiper_ap_set_s_type(XDR * xdrs,rpc_loc_wiper_ap_set_s_type * objp)1381 xdr_rpc_loc_wiper_ap_set_s_type (XDR *xdrs, rpc_loc_wiper_ap_set_s_type *objp)
1382 {
1383 register int32_t *buf;
1384
1385 int i;
1386 if (!xdr_rpc_uint8 (xdrs, &objp->num_of_aps))
1387 return FALSE;
1388 if (!xdr_vector (xdrs, (char *)objp->ap_info, 50,
1389 sizeof (rpc_loc_wiper_ap_info_s_type), (xdrproc_t) xdr_rpc_loc_wiper_ap_info_s_type))
1390 return FALSE;
1391 return TRUE;
1392 }
1393
1394 bool_t
xdr_rpc_loc_wiper_position_report_s_type(XDR * xdrs,rpc_loc_wiper_position_report_s_type * objp)1395 xdr_rpc_loc_wiper_position_report_s_type (XDR *xdrs, rpc_loc_wiper_position_report_s_type *objp)
1396 {
1397 register int32_t *buf;
1398
1399 if (!xdr_rpc_uint8 (xdrs, &objp->wiper_valid_info_flag))
1400 return FALSE;
1401 if (!xdr_rpc_loc_wiper_fix_time_s_type (xdrs, &objp->wiper_fix_time))
1402 return FALSE;
1403 if (!xdr_rpc_loc_wiper_fix_pos_s_type (xdrs, &objp->wiper_fix_position))
1404 return FALSE;
1405 if (!xdr_rpc_loc_wiper_ap_set_s_type (xdrs, &objp->wiper_ap_set))
1406 return FALSE;
1407 return TRUE;
1408 }
1409
1410 bool_t
xdr_rpc_loc_wiper_status_e_type(XDR * xdrs,rpc_loc_wiper_status_e_type * objp)1411 xdr_rpc_loc_wiper_status_e_type (XDR *xdrs, rpc_loc_wiper_status_e_type *objp)
1412 {
1413 register int32_t *buf;
1414
1415 if (!xdr_enum (xdrs, (enum_t *) objp))
1416 return FALSE;
1417 return TRUE;
1418 }
1419
1420 bool_t
xdr_rpc_loc_fs_operation_e_type(XDR * xdrs,rpc_loc_fs_operation_e_type * objp)1421 xdr_rpc_loc_fs_operation_e_type (XDR *xdrs, rpc_loc_fs_operation_e_type *objp)
1422 {
1423 register int32_t *buf;
1424
1425 if (!xdr_enum (xdrs, (enum_t *) objp))
1426 return FALSE;
1427 return TRUE;
1428 }
1429
1430 bool_t
xdr_rpc_loc_efs_data_s_type(XDR * xdrs,rpc_loc_efs_data_s_type * objp)1431 xdr_rpc_loc_efs_data_s_type (XDR *xdrs, rpc_loc_efs_data_s_type *objp)
1432 {
1433 register int32_t *buf;
1434
1435 int i;
1436 if (!xdr_opaque (xdrs, objp->filename, 64))
1437 return FALSE;
1438 if (!xdr_rpc_loc_fs_operation_e_type (xdrs, &objp->operation))
1439 return FALSE;
1440 if (!xdr_rpc_uint32 (xdrs, &objp->total_size))
1441 return FALSE;
1442 if (!xdr_bytes (xdrs, (char **)&objp->data_ptr.data_ptr_val, (u_int *) &objp->data_ptr.data_ptr_len, ~0))
1443 return FALSE;
1444 if (!xdr_rpc_uint32 (xdrs, &objp->part_len))
1445 return FALSE;
1446 if (!xdr_rpc_uint8 (xdrs, &objp->part))
1447 return FALSE;
1448 if (!xdr_rpc_uint8 (xdrs, &objp->total_parts))
1449 return FALSE;
1450 if (!xdr_rpc_uint32 (xdrs, &objp->reserved))
1451 return FALSE;
1452 return TRUE;
1453 }
1454
1455 bool_t
xdr_rpc_loc_error_estimate_config_e_type(XDR * xdrs,rpc_loc_error_estimate_config_e_type * objp)1456 xdr_rpc_loc_error_estimate_config_e_type (XDR *xdrs, rpc_loc_error_estimate_config_e_type *objp)
1457 {
1458 register int32_t *buf;
1459
1460 if (!xdr_enum (xdrs, (enum_t *) objp))
1461 return FALSE;
1462 return TRUE;
1463 }
1464
1465 bool_t
xdr_rpc_loc_apn_profiles_type(XDR * xdrs,rpc_loc_apn_profiles_type * objp)1466 xdr_rpc_loc_apn_profiles_type (XDR *xdrs, rpc_loc_apn_profiles_type *objp)
1467 {
1468 register int32_t *buf;
1469
1470 int i;
1471 if (!xdr_rpc_uint32 (xdrs, &objp->srv_system_type))
1472 return FALSE;
1473 if (!xdr_rpc_uint32 (xdrs, &objp->pdp_type))
1474 return FALSE;
1475 if (!xdr_rpc_uint32 (xdrs, &objp->reserved))
1476 return FALSE;
1477 if (!xdr_opaque (xdrs, objp->apn_name, 100))
1478 return FALSE;
1479 return TRUE;
1480 }
1481
1482 bool_t
xdr_rpc_loc_lock_e_type(XDR * xdrs,rpc_loc_lock_e_type * objp)1483 xdr_rpc_loc_lock_e_type (XDR *xdrs, rpc_loc_lock_e_type *objp)
1484 {
1485 register int32_t *buf;
1486
1487 if (!xdr_enum (xdrs, (enum_t *) objp))
1488 return FALSE;
1489 return TRUE;
1490 }
1491
1492 bool_t
xdr_rpc_loc_nmea_sentence_type(XDR * xdrs,rpc_loc_nmea_sentence_type * objp)1493 xdr_rpc_loc_nmea_sentence_type (XDR *xdrs, rpc_loc_nmea_sentence_type *objp)
1494 {
1495 register int32_t *buf;
1496
1497 if (!xdr_rpc_uint32 (xdrs, objp))
1498 return FALSE;
1499 return TRUE;
1500 }
1501
1502 bool_t
xdr_rpc_loc_assist_data_type(XDR * xdrs,rpc_loc_assist_data_type * objp)1503 xdr_rpc_loc_assist_data_type (XDR *xdrs, rpc_loc_assist_data_type *objp)
1504 {
1505 register int32_t *buf;
1506
1507 if (!xdr_rpc_uint32 (xdrs, objp))
1508 return FALSE;
1509 return TRUE;
1510 }
1511
1512 bool_t
xdr_rpc_loc_assist_data_delete_s_type(XDR * xdrs,rpc_loc_assist_data_delete_s_type * objp)1513 xdr_rpc_loc_assist_data_delete_s_type (XDR *xdrs, rpc_loc_assist_data_delete_s_type *objp)
1514 {
1515 register int32_t *buf;
1516
1517 int i;
1518 if (!xdr_rpc_loc_assist_data_type (xdrs, &objp->type))
1519 return FALSE;
1520 if (!xdr_vector (xdrs, (char *)objp->reserved, 8,
1521 sizeof (rpc_uint32), (xdrproc_t) xdr_rpc_uint32))
1522 return FALSE;
1523 return TRUE;
1524 }
1525
1526 bool_t
xdr_rpc_loc_ioctl_data_u_type(XDR * xdrs,rpc_loc_ioctl_data_u_type * objp)1527 xdr_rpc_loc_ioctl_data_u_type (XDR *xdrs, rpc_loc_ioctl_data_u_type *objp)
1528 {
1529 register int32_t *buf;
1530
1531 if (!xdr_rpc_loc_ioctl_e_type (xdrs, &objp->disc))
1532 return FALSE;
1533 switch (objp->disc) {
1534 case RPC_LOC_IOCTL_SET_FIX_CRITERIA:
1535 if (!xdr_rpc_loc_fix_criteria_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.fix_criteria))
1536 return FALSE;
1537 break;
1538 case RPC_LOC_IOCTL_INFORM_NI_USER_RESPONSE:
1539 if (!xdr_rpc_loc_user_verify_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.user_verify_resp))
1540 return FALSE;
1541 break;
1542 case RPC_LOC_IOCTL_INJECT_PREDICTED_ORBITS_DATA:
1543 if (!xdr_rpc_loc_predicted_orbits_data_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.predicted_orbits_data))
1544 return FALSE;
1545 break;
1546 case RPC_LOC_IOCTL_SET_PREDICTED_ORBITS_DATA_AUTO_DOWNLOAD:
1547 if (!xdr_rpc_loc_predicted_orbits_auto_download_config_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.predicted_orbits_auto_download))
1548 return FALSE;
1549 break;
1550 case RPC_LOC_IOCTL_INJECT_UTC_TIME:
1551 if (!xdr_rpc_loc_assist_data_time_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.assistance_data_time))
1552 return FALSE;
1553 break;
1554 case RPC_LOC_IOCTL_INJECT_POSITION:
1555 if (!xdr_rpc_loc_assist_data_pos_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.assistance_data_position))
1556 return FALSE;
1557 break;
1558 case RPC_LOC_IOCTL_INFORM_SERVER_OPEN_STATUS:
1559 if (!xdr_rpc_loc_server_open_status_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.conn_open_status))
1560 return FALSE;
1561 break;
1562 case RPC_LOC_IOCTL_INFORM_SERVER_CLOSE_STATUS:
1563 if (!xdr_rpc_loc_server_close_status_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.conn_close_status))
1564 return FALSE;
1565 break;
1566 case RPC_LOC_IOCTL_SEND_WIPER_POSITION_REPORT:
1567 if (!xdr_rpc_loc_wiper_position_report_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.wiper_pos))
1568 return FALSE;
1569 break;
1570 case RPC_LOC_IOCTL_NOTIFY_WIPER_STATUS:
1571 if (!xdr_rpc_loc_wiper_status_e_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.wiper_status))
1572 return FALSE;
1573 break;
1574 case RPC_LOC_IOCTL_SET_ENGINE_LOCK:
1575 if (!xdr_rpc_loc_lock_e_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.engine_lock))
1576 return FALSE;
1577 break;
1578 case RPC_LOC_IOCTL_SET_SBAS_CONFIG:
1579 if (!xdr_rpc_boolean (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.sbas_mode))
1580 return FALSE;
1581 break;
1582 case RPC_LOC_IOCTL_SET_NMEA_TYPES:
1583 if (!xdr_rpc_loc_nmea_sentence_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.nmea_types))
1584 return FALSE;
1585 break;
1586 case RPC_LOC_IOCTL_SET_ON_DEMAND_LPM:
1587 if (!xdr_rpc_boolean (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.on_demand_lpm))
1588 return FALSE;
1589 break;
1590 case RPC_LOC_IOCTL_SET_CDMA_PDE_SERVER_ADDR:
1591 case RPC_LOC_IOCTL_SET_CDMA_MPC_SERVER_ADDR:
1592 case RPC_LOC_IOCTL_SET_UMTS_SLP_SERVER_ADDR:
1593 case RPC_LOC_IOCTL_SET_CUSTOM_PDE_SERVER_ADDR:
1594 if (!xdr_rpc_loc_server_info_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.server_addr))
1595 return FALSE;
1596 break;
1597 case RPC_LOC_IOCTL_DELETE_ASSIST_DATA:
1598 if (!xdr_rpc_loc_assist_data_delete_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.assist_data_delete))
1599 return FALSE;
1600 break;
1601 case RPC_LOC_IOCTL_ACCESS_EFS_DATA:
1602 if (!xdr_rpc_loc_efs_data_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.efs_data))
1603 return FALSE;
1604 break;
1605 case RPC_LOC_IOCTL_ERROR_ESTIMATE_CONFIG:
1606 if (!xdr_rpc_loc_error_estimate_config_e_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.error_estimate_config))
1607 return FALSE;
1608 break;
1609 case RPC_LOC_IOCTL_SET_XTRA_T_SESSION_CONTROL:
1610 if (!xdr_rpc_uint8 (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.xtra_t_session_control))
1611 return FALSE;
1612 break;
1613 case RPC_LOC_IOCTL_SET_LBS_APN_PROFILE:
1614 case RPC_LOC_IOCTL_SET_XTRA_APN_PROFILE:
1615 if (!xdr_vector (xdrs, (char *)objp->rpc_loc_ioctl_data_u_type_u.apn_profiles, 6,
1616 sizeof (rpc_loc_apn_profiles_type), (xdrproc_t) xdr_rpc_loc_apn_profiles_type))
1617 return FALSE;
1618 break;
1619 case RPC_LOC_IOCTL_SET_DATA_ENABLE:
1620 if (!xdr_rpc_boolean (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.data_enable))
1621 return FALSE;
1622 break;
1623 case RPC_LOC_IOCTL_SET_SUPL_VERSION:
1624 if (!xdr_rpc_uint32 (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.supl_version))
1625 return FALSE;
1626 break;
1627 case RPC_LOC_IOCTL_INFORM_SERVER_MULTI_OPEN_STATUS:
1628 if (!xdr_rpc_loc_server_multi_open_status_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.multi_conn_open_status))
1629 return FALSE;
1630 break;
1631 case RPC_LOC_IOCTL_RESERVED_CMD:
1632 if (!xdr_rpc_loc_reserved_payload_s_type (xdrs, &objp->rpc_loc_ioctl_data_u_type_u.reserved))
1633 return FALSE;
1634 break;
1635 default:
1636 break;
1637 }
1638 return TRUE;
1639 }
1640
1641 bool_t
xdr_rpc_loc_ioctl_callback_data_u_type(XDR * xdrs,rpc_loc_ioctl_callback_data_u_type * objp)1642 xdr_rpc_loc_ioctl_callback_data_u_type (XDR *xdrs, rpc_loc_ioctl_callback_data_u_type *objp)
1643 {
1644 register int32_t *buf;
1645
1646 if (!xdr_rpc_loc_ioctl_e_type (xdrs, &objp->disc))
1647 return FALSE;
1648 switch (objp->disc) {
1649 case RPC_LOC_IOCTL_GET_API_VERSION:
1650 if (!xdr_rpc_loc_api_version_s_type (xdrs, &objp->rpc_loc_ioctl_callback_data_u_type_u.api_version))
1651 return FALSE;
1652 break;
1653 case RPC_LOC_IOCTL_GET_FIX_CRITERIA:
1654 if (!xdr_rpc_loc_fix_criteria_s_type (xdrs, &objp->rpc_loc_ioctl_callback_data_u_type_u.fix_criteria))
1655 return FALSE;
1656 break;
1657 case RPC_LOC_IOCTL_GET_ENGINE_LOCK:
1658 if (!xdr_rpc_loc_lock_e_type (xdrs, &objp->rpc_loc_ioctl_callback_data_u_type_u.engine_lock))
1659 return FALSE;
1660 break;
1661 case RPC_LOC_IOCTL_GET_SBAS_CONFIG:
1662 if (!xdr_rpc_boolean (xdrs, &objp->rpc_loc_ioctl_callback_data_u_type_u.sbas_mode))
1663 return FALSE;
1664 break;
1665 case RPC_LOC_IOCTL_GET_NMEA_TYPES:
1666 if (!xdr_rpc_loc_nmea_sentence_type (xdrs, &objp->rpc_loc_ioctl_callback_data_u_type_u.nmea_types))
1667 return FALSE;
1668 break;
1669 case RPC_LOC_IOCTL_GET_ON_DEMAND_LPM:
1670 if (!xdr_rpc_boolean (xdrs, &objp->rpc_loc_ioctl_callback_data_u_type_u.on_demand_lpm))
1671 return FALSE;
1672 break;
1673 case RPC_LOC_IOCTL_GET_CDMA_PDE_SERVER_ADDR:
1674 case RPC_LOC_IOCTL_GET_CDMA_MPC_SERVER_ADDR:
1675 case RPC_LOC_IOCTL_GET_UMTS_SLP_SERVER_ADDR:
1676 case RPC_LOC_IOCTL_GET_CUSTOM_PDE_SERVER_ADDR:
1677 if (!xdr_rpc_loc_server_info_s_type (xdrs, &objp->rpc_loc_ioctl_callback_data_u_type_u.server_addr))
1678 return FALSE;
1679 break;
1680 case RPC_LOC_IOCTL_QUERY_PREDICTED_ORBITS_DATA_SOURCE:
1681 if (!xdr_rpc_loc_predicted_orbits_data_source_s_type (xdrs, &objp->rpc_loc_ioctl_callback_data_u_type_u.predicted_orbits_data_source))
1682 return FALSE;
1683 break;
1684 case RPC_LOC_IOCTL_QUERY_PREDICTED_ORBITS_DATA_VALIDITY:
1685 if (!xdr_rpc_loc_predicted_orbits_data_validity_report_s_type (xdrs, &objp->rpc_loc_ioctl_callback_data_u_type_u.predicted_orbits_data_validity))
1686 return FALSE;
1687 break;
1688 case RPC_LOC_IOCTL_GET_XTRA_T_SESSION_CONTROL:
1689 if (!xdr_rpc_uint8 (xdrs, &objp->rpc_loc_ioctl_callback_data_u_type_u.xtra_t_session_control))
1690 return FALSE;
1691 break;
1692 case RPC_LOC_IOCTL_GET_LBS_APN_PROFILE:
1693 case RPC_LOC_IOCTL_GET_XTRA_APN_PROFILE:
1694 if (!xdr_vector (xdrs, (char *)objp->rpc_loc_ioctl_callback_data_u_type_u.apn_profiles, 6,
1695 sizeof (rpc_loc_apn_profiles_type), (xdrproc_t) xdr_rpc_loc_apn_profiles_type))
1696 return FALSE;
1697 break;
1698 case RPC_LOC_IOCTL_GET_SUPL_VERSION:
1699 if (!xdr_rpc_uint32 (xdrs, &objp->rpc_loc_ioctl_callback_data_u_type_u.supl_version))
1700 return FALSE;
1701 break;
1702 default:
1703 break;
1704 }
1705 return TRUE;
1706 }
1707
1708 bool_t
xdr_rpc_loc_ioctl_callback_s_type(XDR * xdrs,rpc_loc_ioctl_callback_s_type * objp)1709 xdr_rpc_loc_ioctl_callback_s_type (XDR *xdrs, rpc_loc_ioctl_callback_s_type *objp)
1710 {
1711 register int32_t *buf;
1712
1713 if (!xdr_rpc_loc_ioctl_e_type (xdrs, &objp->type))
1714 return FALSE;
1715 if (!xdr_rpc_int32 (xdrs, &objp->status))
1716 return FALSE;
1717 if (!xdr_rpc_loc_ioctl_callback_data_u_type (xdrs, &objp->data))
1718 return FALSE;
1719 return TRUE;
1720 }
1721
1722 bool_t
xdr_rpc_loc_event_payload_u_type(XDR * xdrs,rpc_loc_event_payload_u_type * objp)1723 xdr_rpc_loc_event_payload_u_type (XDR *xdrs, rpc_loc_event_payload_u_type *objp)
1724 {
1725 register int32_t *buf;
1726
1727 if (!xdr_u_quad_t (xdrs, &objp->disc))
1728 return FALSE;
1729 switch (objp->disc) {
1730 case RPC_LOC_EVENT_PARSED_POSITION_REPORT:
1731 if (!xdr_rpc_loc_parsed_position_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.parsed_location_report))
1732 return FALSE;
1733 break;
1734 case RPC_LOC_EVENT_SATELLITE_REPORT:
1735 if (!xdr_rpc_loc_gnss_info_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.gnss_report))
1736 return FALSE;
1737 break;
1738 case RPC_LOC_EVENT_NMEA_POSITION_REPORT:
1739 case RPC_LOC_EVENT_NMEA_1HZ_REPORT:
1740 if (!xdr_rpc_loc_nmea_report_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.nmea_report))
1741 return FALSE;
1742 break;
1743 case RPC_LOC_EVENT_NI_NOTIFY_VERIFY_REQUEST:
1744 if (!xdr_rpc_loc_ni_event_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.ni_request))
1745 return FALSE;
1746 break;
1747 case RPC_LOC_EVENT_ASSISTANCE_DATA_REQUEST:
1748 if (!xdr_rpc_loc_assist_data_request_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.assist_data_request))
1749 return FALSE;
1750 break;
1751 case RPC_LOC_EVENT_LOCATION_SERVER_REQUEST:
1752 if (!xdr_rpc_loc_server_request_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.loc_server_request))
1753 return FALSE;
1754 break;
1755 case RPC_LOC_EVENT_IOCTL_REPORT:
1756 if (!xdr_rpc_loc_ioctl_callback_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.ioctl_report))
1757 return FALSE;
1758 break;
1759 case RPC_LOC_EVENT_STATUS_REPORT:
1760 if (!xdr_rpc_loc_status_event_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.status_report))
1761 return FALSE;
1762 break;
1763 case RPC_LOC_EVENT_WPS_NEEDED_REQUEST:
1764 if (!xdr_rpc_loc_qwip_request_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.qwip_request))
1765 return FALSE;
1766 break;
1767 case RPC_LOC_EVENT_RESERVED:
1768 if (!xdr_rpc_loc_reserved_payload_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.reserved))
1769 return FALSE;
1770 break;
1771 default:
1772 break;
1773 }
1774 return TRUE;
1775 }
1776