1 /* 2 Copyright (c) 2009, QUALCOMM USA, INC. 3 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 7 8 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 9 10 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 11 12 Neither the name of the QUALCOMM USA, INC. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 13 14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 15 16 */ 17 18 /* 19 * Please do not edit this file. 20 * It was generated using rpcgen. 21 */ 22 23 #include "loc_api.h" 24 25 bool_t 26 xdr_rpc_loc_api_api_versions_return_type (XDR *xdrs, rpc_loc_api_api_versions_return_type *objp) 27 { 28 register int32_t *buf; 29 30 if (!xdr_array (xdrs, (char **)&objp->rpc_loc_api_api_versions_return_type_val, (u_int *) &objp->rpc_loc_api_api_versions_return_type_len, ~0, 31 sizeof (rpc_uint32), (xdrproc_t) xdr_rpc_uint32)) 32 return FALSE; 33 return TRUE; 34 } 35 36 bool_t 37 xdr_rpc_loc_event_cb_f_type (XDR *xdrs, rpc_loc_event_cb_f_type *objp) 38 { 39 register int32_t *buf; 40 41 if (!xdr_rpc_uint32 (xdrs, objp)) 42 return FALSE; 43 return TRUE; 44 } 45 46 bool_t 47 xdr_rpc_loc_open_args (XDR *xdrs, rpc_loc_open_args *objp) 48 { 49 register int32_t *buf; 50 51 if (!xdr_rpc_loc_event_mask_type (xdrs, &objp->event_reg_mask)) 52 return FALSE; 53 if (!xdr_rpc_loc_event_cb_f_type (xdrs, &objp->event_callback)) 54 return FALSE; 55 return TRUE; 56 } 57 58 bool_t 59 xdr_rpc_loc_close_args (XDR *xdrs, rpc_loc_close_args *objp) 60 { 61 register int32_t *buf; 62 63 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle)) 64 return FALSE; 65 return TRUE; 66 } 67 68 bool_t 69 xdr_rpc_loc_start_fix_args (XDR *xdrs, rpc_loc_start_fix_args *objp) 70 { 71 register int32_t *buf; 72 73 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle)) 74 return FALSE; 75 return TRUE; 76 } 77 78 bool_t 79 xdr_rpc_loc_stop_fix_args (XDR *xdrs, rpc_loc_stop_fix_args *objp) 80 { 81 register int32_t *buf; 82 83 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle)) 84 return FALSE; 85 return TRUE; 86 } 87 88 bool_t 89 xdr_rpc_loc_ioctl_args (XDR *xdrs, rpc_loc_ioctl_args *objp) 90 { 91 register int32_t *buf; 92 93 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle)) 94 return FALSE; 95 if (!xdr_rpc_loc_ioctl_e_type (xdrs, &objp->ioctl_type)) 96 return FALSE; 97 if (!xdr_pointer (xdrs, (char **)&objp->ioctl_data, sizeof (rpc_loc_ioctl_data_u_type), (xdrproc_t) xdr_rpc_loc_ioctl_data_u_type)) 98 return FALSE; 99 return TRUE; 100 } 101 102 bool_t 103 xdr_rpc_loc_api_api_version_s_args (XDR *xdrs, rpc_loc_api_api_version_s_args *objp) 104 { 105 register int32_t *buf; 106 107 if (!xdr_rpc_boolean (xdrs, &objp->len_not_null)) 108 return FALSE; 109 return TRUE; 110 } 111 112 bool_t 113 xdr_rpc_loc_api_rpc_glue_code_info_remote_rets (XDR *xdrs, rpc_loc_api_rpc_glue_code_info_remote_rets *objp) 114 { 115 register int32_t *buf; 116 117 if (!xdr_rpc_uint32 (xdrs, &objp->toolvers)) 118 return FALSE; 119 if (!xdr_rpc_uint32 (xdrs, &objp->features)) 120 return FALSE; 121 if (!xdr_rpc_uint32 (xdrs, &objp->proghash)) 122 return FALSE; 123 if (!xdr_rpc_uint32 (xdrs, &objp->cbproghash)) 124 return FALSE; 125 return TRUE; 126 } 127 128 bool_t 129 xdr_rpc_loc_open_rets (XDR *xdrs, rpc_loc_open_rets *objp) 130 { 131 register int32_t *buf; 132 133 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->loc_open_result)) 134 return FALSE; 135 return TRUE; 136 } 137 138 bool_t 139 xdr_rpc_loc_close_rets (XDR *xdrs, rpc_loc_close_rets *objp) 140 { 141 register int32_t *buf; 142 143 if (!xdr_rpc_int32 (xdrs, &objp->loc_close_result)) 144 return FALSE; 145 return TRUE; 146 } 147 148 bool_t 149 xdr_rpc_loc_start_fix_rets (XDR *xdrs, rpc_loc_start_fix_rets *objp) 150 { 151 register int32_t *buf; 152 153 if (!xdr_rpc_int32 (xdrs, &objp->loc_start_fix_result)) 154 return FALSE; 155 return TRUE; 156 } 157 158 bool_t 159 xdr_rpc_loc_stop_fix_rets (XDR *xdrs, rpc_loc_stop_fix_rets *objp) 160 { 161 register int32_t *buf; 162 163 if (!xdr_rpc_int32 (xdrs, &objp->loc_stop_fix_result)) 164 return FALSE; 165 return TRUE; 166 } 167 168 bool_t 169 xdr_rpc_loc_ioctl_rets (XDR *xdrs, rpc_loc_ioctl_rets *objp) 170 { 171 register int32_t *buf; 172 173 if (!xdr_rpc_int32 (xdrs, &objp->loc_ioctl_result)) 174 return FALSE; 175 return TRUE; 176 } 177 178 bool_t 179 xdr_rpc_loc_api_api_versions_rets (XDR *xdrs, rpc_loc_api_api_versions_rets *objp) 180 { 181 register int32_t *buf; 182 183 if (!xdr_rpc_loc_api_api_versions_return_type (xdrs, &objp->loc_api_api_versions_result)) 184 return FALSE; 185 if (!xdr_pointer (xdrs, (char **)&objp->len, sizeof (rpc_uint32), (xdrproc_t) xdr_rpc_uint32)) 186 return FALSE; 187 return TRUE; 188 } 189