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_rpc.h" 35 36 bool_t 37 xdr_rpc_loc_api_api_versions_return_type (XDR *xdrs, rpc_loc_api_api_versions_return_type *objp) 38 { 39 ; 40 41 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, 42 sizeof (rpc_uint32), (xdrproc_t) xdr_rpc_uint32)) 43 return FALSE; 44 return TRUE; 45 } 46 47 bool_t 48 xdr_rpc_loc_event_cb_f_type (XDR *xdrs, rpc_loc_event_cb_f_type *objp) 49 { 50 ; 51 52 if (!xdr_rpc_uint32 (xdrs, objp)) 53 return FALSE; 54 return TRUE; 55 } 56 57 bool_t 58 xdr_rpc_loc_open_args (XDR *xdrs, rpc_loc_open_args *objp) 59 { 60 ; 61 62 if (!xdr_rpc_loc_event_mask_type (xdrs, &objp->event_reg_mask)) 63 return FALSE; 64 if (!xdr_rpc_loc_event_cb_f_type (xdrs, &objp->event_callback)) 65 return FALSE; 66 return TRUE; 67 } 68 69 bool_t 70 xdr_rpc_loc_close_args (XDR *xdrs, rpc_loc_close_args *objp) 71 { 72 ; 73 74 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle)) 75 return FALSE; 76 return TRUE; 77 } 78 79 bool_t 80 xdr_rpc_loc_start_fix_args (XDR *xdrs, rpc_loc_start_fix_args *objp) 81 { 82 ; 83 84 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle)) 85 return FALSE; 86 return TRUE; 87 } 88 89 bool_t 90 xdr_rpc_loc_stop_fix_args (XDR *xdrs, rpc_loc_stop_fix_args *objp) 91 { 92 ; 93 94 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle)) 95 return FALSE; 96 return TRUE; 97 } 98 99 bool_t 100 xdr_rpc_loc_ioctl_args (XDR *xdrs, rpc_loc_ioctl_args *objp) 101 { 102 ; 103 104 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle)) 105 return FALSE; 106 if (!xdr_rpc_loc_ioctl_e_type (xdrs, &objp->ioctl_type)) 107 return FALSE; 108 if (!xdr_pointer (xdrs, (char **)&objp->ioctl_data, sizeof (rpc_loc_ioctl_data_u_type), (xdrproc_t) xdr_rpc_loc_ioctl_data_u_type)) 109 return FALSE; 110 return TRUE; 111 } 112 113 bool_t 114 xdr_rpc_loc_api_api_version_s_args (XDR *xdrs, rpc_loc_api_api_version_s_args *objp) 115 { 116 ; 117 118 if (!xdr_rpc_boolean (xdrs, &objp->len_not_null)) 119 return FALSE; 120 return TRUE; 121 } 122 123 bool_t 124 xdr_rpc_loc_api_rpc_glue_code_info_remote_rets (XDR *xdrs, rpc_loc_api_rpc_glue_code_info_remote_rets *objp) 125 { 126 ; 127 128 if (!xdr_rpc_uint32 (xdrs, &objp->toolvers)) 129 return FALSE; 130 if (!xdr_rpc_uint32 (xdrs, &objp->features)) 131 return FALSE; 132 if (!xdr_rpc_uint32 (xdrs, &objp->proghash)) 133 return FALSE; 134 if (!xdr_rpc_uint32 (xdrs, &objp->cbproghash)) 135 return FALSE; 136 return TRUE; 137 } 138 139 bool_t 140 xdr_rpc_loc_open_rets (XDR *xdrs, rpc_loc_open_rets *objp) 141 { 142 ; 143 144 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->loc_open_result)) 145 return FALSE; 146 return TRUE; 147 } 148 149 bool_t 150 xdr_rpc_loc_close_rets (XDR *xdrs, rpc_loc_close_rets *objp) 151 { 152 ; 153 154 if (!xdr_rpc_int32 (xdrs, &objp->loc_close_result)) 155 return FALSE; 156 return TRUE; 157 } 158 159 bool_t 160 xdr_rpc_loc_start_fix_rets (XDR *xdrs, rpc_loc_start_fix_rets *objp) 161 { 162 ; 163 164 if (!xdr_rpc_int32 (xdrs, &objp->loc_start_fix_result)) 165 return FALSE; 166 return TRUE; 167 } 168 169 bool_t 170 xdr_rpc_loc_stop_fix_rets (XDR *xdrs, rpc_loc_stop_fix_rets *objp) 171 { 172 ; 173 174 if (!xdr_rpc_int32 (xdrs, &objp->loc_stop_fix_result)) 175 return FALSE; 176 return TRUE; 177 } 178 179 bool_t 180 xdr_rpc_loc_ioctl_rets (XDR *xdrs, rpc_loc_ioctl_rets *objp) 181 { 182 ; 183 184 if (!xdr_rpc_int32 (xdrs, &objp->loc_ioctl_result)) 185 return FALSE; 186 return TRUE; 187 } 188 189 bool_t 190 xdr_rpc_loc_api_api_versions_rets (XDR *xdrs, rpc_loc_api_api_versions_rets *objp) 191 { 192 ; 193 194 if (!xdr_rpc_loc_api_api_versions_return_type (xdrs, &objp->loc_api_api_versions_result)) 195 return FALSE; 196 if (!xdr_pointer (xdrs, (char **)&objp->len, sizeof (rpc_uint32), (xdrproc_t) xdr_rpc_uint32)) 197 return FALSE; 198 return TRUE; 199 } 200