Home | History | Annotate | Download | only in gen-1240
      1 /*
      2  * Please do not edit this file.
      3  * It was generated using rpcgen.
      4  */
      5 
      6 #include "loc_api.h"
      7 
      8 bool_t
      9 xdr_rpc_loc_api_api_versions_return_type (XDR *xdrs, rpc_loc_api_api_versions_return_type *objp)
     10 {
     11 	register int32_t *buf;
     12 
     13 	 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,
     14 		sizeof (rpc_uint32), (xdrproc_t) xdr_rpc_uint32))
     15 		 return FALSE;
     16 	return TRUE;
     17 }
     18 
     19 bool_t
     20 xdr_rpc_loc_event_cb_f_type (XDR *xdrs, rpc_loc_event_cb_f_type *objp)
     21 {
     22 	register int32_t *buf;
     23 
     24 	 if (!xdr_rpc_uint32 (xdrs, objp))
     25 		 return FALSE;
     26 	return TRUE;
     27 }
     28 
     29 bool_t
     30 xdr_rpc_loc_open_args (XDR *xdrs, rpc_loc_open_args *objp)
     31 {
     32 	register int32_t *buf;
     33 
     34 	 if (!xdr_rpc_loc_event_mask_type (xdrs, &objp->event_reg_mask))
     35 		 return FALSE;
     36 	 if (!xdr_rpc_loc_event_cb_f_type (xdrs, &objp->event_callback))
     37 		 return FALSE;
     38 	return TRUE;
     39 }
     40 
     41 bool_t
     42 xdr_rpc_loc_close_args (XDR *xdrs, rpc_loc_close_args *objp)
     43 {
     44 	register int32_t *buf;
     45 
     46 	 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle))
     47 		 return FALSE;
     48 	return TRUE;
     49 }
     50 
     51 bool_t
     52 xdr_rpc_loc_start_fix_args (XDR *xdrs, rpc_loc_start_fix_args *objp)
     53 {
     54 	register int32_t *buf;
     55 
     56 	 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle))
     57 		 return FALSE;
     58 	return TRUE;
     59 }
     60 
     61 bool_t
     62 xdr_rpc_loc_stop_fix_args (XDR *xdrs, rpc_loc_stop_fix_args *objp)
     63 {
     64 	register int32_t *buf;
     65 
     66 	 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle))
     67 		 return FALSE;
     68 	return TRUE;
     69 }
     70 
     71 bool_t
     72 xdr_rpc_loc_ioctl_args (XDR *xdrs, rpc_loc_ioctl_args *objp)
     73 {
     74 	register int32_t *buf;
     75 
     76 	 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->handle))
     77 		 return FALSE;
     78 	 if (!xdr_rpc_loc_ioctl_e_type (xdrs, &objp->ioctl_type))
     79 		 return FALSE;
     80 	 if (!xdr_pointer (xdrs, (char **)&objp->ioctl_data, sizeof (rpc_loc_ioctl_data_u_type), (xdrproc_t) xdr_rpc_loc_ioctl_data_u_type))
     81 		 return FALSE;
     82 	return TRUE;
     83 }
     84 
     85 bool_t
     86 xdr_rpc_loc_api_api_version_s_args (XDR *xdrs, rpc_loc_api_api_version_s_args *objp)
     87 {
     88 	register int32_t *buf;
     89 
     90 	 if (!xdr_rpc_boolean (xdrs, &objp->len_not_null))
     91 		 return FALSE;
     92 	return TRUE;
     93 }
     94 
     95 bool_t
     96 xdr_rpc_loc_api_rpc_glue_code_info_remote_rets (XDR *xdrs, rpc_loc_api_rpc_glue_code_info_remote_rets *objp)
     97 {
     98 	register int32_t *buf;
     99 
    100 	 if (!xdr_rpc_uint32 (xdrs, &objp->toolvers))
    101 		 return FALSE;
    102 	 if (!xdr_rpc_uint32 (xdrs, &objp->features))
    103 		 return FALSE;
    104 	 if (!xdr_rpc_uint32 (xdrs, &objp->proghash))
    105 		 return FALSE;
    106 	 if (!xdr_rpc_uint32 (xdrs, &objp->cbproghash))
    107 		 return FALSE;
    108 	return TRUE;
    109 }
    110 
    111 bool_t
    112 xdr_rpc_loc_open_rets (XDR *xdrs, rpc_loc_open_rets *objp)
    113 {
    114 	register int32_t *buf;
    115 
    116 	 if (!xdr_rpc_loc_client_handle_type (xdrs, &objp->loc_open_result))
    117 		 return FALSE;
    118 	return TRUE;
    119 }
    120 
    121 bool_t
    122 xdr_rpc_loc_close_rets (XDR *xdrs, rpc_loc_close_rets *objp)
    123 {
    124 	register int32_t *buf;
    125 
    126 	 if (!xdr_rpc_int32 (xdrs, &objp->loc_close_result))
    127 		 return FALSE;
    128 	return TRUE;
    129 }
    130 
    131 bool_t
    132 xdr_rpc_loc_start_fix_rets (XDR *xdrs, rpc_loc_start_fix_rets *objp)
    133 {
    134 	register int32_t *buf;
    135 
    136 	 if (!xdr_rpc_int32 (xdrs, &objp->loc_start_fix_result))
    137 		 return FALSE;
    138 	return TRUE;
    139 }
    140 
    141 bool_t
    142 xdr_rpc_loc_stop_fix_rets (XDR *xdrs, rpc_loc_stop_fix_rets *objp)
    143 {
    144 	register int32_t *buf;
    145 
    146 	 if (!xdr_rpc_int32 (xdrs, &objp->loc_stop_fix_result))
    147 		 return FALSE;
    148 	return TRUE;
    149 }
    150 
    151 bool_t
    152 xdr_rpc_loc_ioctl_rets (XDR *xdrs, rpc_loc_ioctl_rets *objp)
    153 {
    154 	register int32_t *buf;
    155 
    156 	 if (!xdr_rpc_int32 (xdrs, &objp->loc_ioctl_result))
    157 		 return FALSE;
    158 	return TRUE;
    159 }
    160 
    161 bool_t
    162 xdr_rpc_loc_api_api_versions_rets (XDR *xdrs, rpc_loc_api_api_versions_rets *objp)
    163 {
    164 	register int32_t *buf;
    165 
    166 	 if (!xdr_rpc_loc_api_api_versions_return_type (xdrs, &objp->loc_api_api_versions_result))
    167 		 return FALSE;
    168 	 if (!xdr_pointer (xdrs, (char **)&objp->len, sizeof (rpc_uint32), (xdrproc_t) xdr_rpc_uint32))
    169 		 return FALSE;
    170 	return TRUE;
    171 }
    172