bool_t xdr_gf_prog_detail (XDR *xdrs, gf_prog_detail *objp) { if (!xdr_string (xdrs, &objp->progname, ~0)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->prognum)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->progver)) return FALSE; if (!xdr_pointer (xdrs, (char **)&objp->next, sizeof (gf_prog_detail), (xdrproc_t) xdr_gf_prog_detail)) return FALSE; return TRUE; }
bool_t xdr_gf_dump_req (XDR *xdrs, gf_dump_req *objp) { if (!xdr_u_quad_t (xdrs, &objp->gfs_id)) return FALSE; return TRUE; }
bool_t xdr_uint64(XDR *xdrs, uint64 *objp) { if (!xdr_u_quad_t(xdrs, objp)) return FALSE; return TRUE; }
bool_t xdr_gf_dump_req (XDR *xdrs, gf_dump_req *objp) { register int32_t *buf; if (!xdr_u_quad_t (xdrs, &objp->gfs_id)) return FALSE; return TRUE; }
bool_t xdr_gf1_cli_defrag_vol_rsp (XDR *xdrs, gf1_cli_defrag_vol_rsp *objp) { if (!xdr_int (xdrs, &objp->op_ret)) return FALSE; if (!xdr_int (xdrs, &objp->op_errno)) return FALSE; if (!xdr_string (xdrs, &objp->volname, ~0)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->files)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->size)) return FALSE; if (!xdr_u_quad_t (xdrs, &objp->lookedup_files)) return FALSE; return TRUE; }
bool_t xdr_uint64_t (XDR *xdrs, uint64_t *objp) { register int32_t *buf; if (!xdr_u_quad_t (xdrs, objp)) return FALSE; return TRUE; }
bool_t xdr_rpc_loc_event_payload_u_type (XDR *xdrs, rpc_loc_event_payload_u_type *objp) { register int32_t *buf; if (!xdr_u_quad_t (xdrs, &objp->disc)) return FALSE; switch (objp->disc) { case RPC_LOC_EVENT_PARSED_POSITION_REPORT: if (!xdr_rpc_loc_parsed_position_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.parsed_location_report)) return FALSE; break; case RPC_LOC_EVENT_SATELLITE_REPORT: if (!xdr_rpc_loc_gnss_info_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.gnss_report)) return FALSE; break; case RPC_LOC_EVENT_NMEA_POSITION_REPORT: if (!xdr_rpc_loc_nmea_report_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.nmea_report)) return FALSE; break; case RPC_LOC_EVENT_NI_NOTIFY_VERIFY_REQUEST: if (!xdr_rpc_loc_ni_event_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.ni_request)) return FALSE; break; case RPC_LOC_EVENT_ASSISTANCE_DATA_REQUEST: if (!xdr_rpc_loc_assist_data_request_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.assist_data_request)) return FALSE; break; case RPC_LOC_EVENT_LOCATION_SERVER_REQUEST: if (!xdr_rpc_loc_server_request_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.loc_server_request)) return FALSE; break; case RPC_LOC_EVENT_IOCTL_REPORT: if (!xdr_rpc_loc_ioctl_callback_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.ioctl_report)) return FALSE; break; case RPC_LOC_EVENT_STATUS_REPORT: if (!xdr_rpc_loc_status_event_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.status_report)) return FALSE; break; case RPC_LOC_EVENT_WPS_NEEDED_REQUEST: if (!xdr_rpc_loc_qwip_request_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.qwip_request)) return FALSE; break; case RPC_LOC_EVENT_RESERVED: if (!xdr_rpc_loc_reserved_payload_s_type (xdrs, &objp->rpc_loc_event_payload_u_type_u.reserved)) return FALSE; break; default: break; } return TRUE; }
bool_t xdr_gf_dump_rsp (XDR *xdrs, gf_dump_rsp *objp) { if (!xdr_u_quad_t (xdrs, &objp->gfs_id)) return FALSE; if (!xdr_int (xdrs, &objp->op_ret)) return FALSE; if (!xdr_int (xdrs, &objp->op_errno)) return FALSE; if (!xdr_pointer (xdrs, (char **)&objp->prog, sizeof (gf_prog_detail), (xdrproc_t) xdr_gf_prog_detail)) return FALSE; return TRUE; }
bool_t xdr_auth_glusterfs_parms (XDR *xdrs, auth_glusterfs_parms *objp) { register int32_t *buf; int i; if (xdrs->x_op == XDR_ENCODE) { if (!xdr_u_quad_t (xdrs, &objp->lk_owner)) return FALSE; buf = XDR_INLINE (xdrs, (4 + 16 )* BYTES_PER_XDR_UNIT); if (buf == NULL) { if (!xdr_u_int (xdrs, &objp->pid)) return FALSE; if (!xdr_u_int (xdrs, &objp->uid)) return FALSE; if (!xdr_u_int (xdrs, &objp->gid)) return FALSE; if (!xdr_u_int (xdrs, &objp->ngrps)) return FALSE; if (!xdr_vector (xdrs, (char *)objp->groups, 16, sizeof (u_int), (xdrproc_t) xdr_u_int)) return FALSE; } else { IXDR_PUT_U_LONG(buf, objp->pid); IXDR_PUT_U_LONG(buf, objp->uid); IXDR_PUT_U_LONG(buf, objp->gid); IXDR_PUT_U_LONG(buf, objp->ngrps); { register u_int *genp; for (i = 0, genp = objp->groups; i < 16; ++i) { IXDR_PUT_U_LONG(buf, *genp++); } } } return TRUE; } else if (xdrs->x_op == XDR_DECODE) { if (!xdr_u_quad_t (xdrs, &objp->lk_owner)) return FALSE; buf = XDR_INLINE (xdrs, (4 + 16 )* BYTES_PER_XDR_UNIT); if (buf == NULL) { if (!xdr_u_int (xdrs, &objp->pid)) return FALSE; if (!xdr_u_int (xdrs, &objp->uid)) return FALSE; if (!xdr_u_int (xdrs, &objp->gid)) return FALSE; if (!xdr_u_int (xdrs, &objp->ngrps)) return FALSE; if (!xdr_vector (xdrs, (char *)objp->groups, 16, sizeof (u_int), (xdrproc_t) xdr_u_int)) return FALSE; } else { objp->pid = IXDR_GET_U_LONG(buf); objp->uid = IXDR_GET_U_LONG(buf); objp->gid = IXDR_GET_U_LONG(buf); objp->ngrps = IXDR_GET_U_LONG(buf); { register u_int *genp; for (i = 0, genp = objp->groups; i < 16; ++i) { *genp++ = IXDR_GET_U_LONG(buf); } } } return TRUE; } if (!xdr_u_quad_t (xdrs, &objp->lk_owner)) return FALSE; if (!xdr_u_int (xdrs, &objp->pid)) return FALSE; if (!xdr_u_int (xdrs, &objp->uid)) return FALSE; if (!xdr_u_int (xdrs, &objp->gid)) return FALSE; if (!xdr_u_int (xdrs, &objp->ngrps)) return FALSE; if (!xdr_vector (xdrs, (char *)objp->groups, 16, sizeof (u_int), (xdrproc_t) xdr_u_int)) return FALSE; return TRUE; }