1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #include <nlm/sm_inter.h> 7 #include <sys/cdefs.h> 8 __FBSDID("$FreeBSD$"); 9 10 bool_t 11 xdr_sm_name(XDR *xdrs, sm_name *objp) 12 { 13 14 if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) 15 return (FALSE); 16 return (TRUE); 17 } 18 19 bool_t 20 xdr_my_id(XDR *xdrs, my_id *objp) 21 { 22 23 if (!xdr_string(xdrs, &objp->my_name, SM_MAXSTRLEN)) 24 return (FALSE); 25 if (!xdr_int(xdrs, &objp->my_prog)) 26 return (FALSE); 27 if (!xdr_int(xdrs, &objp->my_vers)) 28 return (FALSE); 29 if (!xdr_int(xdrs, &objp->my_proc)) 30 return (FALSE); 31 return (TRUE); 32 } 33 34 bool_t 35 xdr_mon_id(XDR *xdrs, mon_id *objp) 36 { 37 38 if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) 39 return (FALSE); 40 if (!xdr_my_id(xdrs, &objp->my_id)) 41 return (FALSE); 42 return (TRUE); 43 } 44 45 bool_t 46 xdr_mon(XDR *xdrs, mon *objp) 47 { 48 49 if (!xdr_mon_id(xdrs, &objp->mon_id)) 50 return (FALSE); 51 if (!xdr_opaque(xdrs, objp->priv, 16)) 52 return (FALSE); 53 return (TRUE); 54 } 55 56 bool_t 57 xdr_stat_chge(XDR *xdrs, stat_chge *objp) 58 { 59 60 if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) 61 return (FALSE); 62 if (!xdr_int(xdrs, &objp->state)) 63 return (FALSE); 64 return (TRUE); 65 } 66 67 bool_t 68 xdr_sm_stat(XDR *xdrs, sm_stat *objp) 69 { 70 71 if (!xdr_int(xdrs, &objp->state)) 72 return (FALSE); 73 return (TRUE); 74 } 75 76 bool_t 77 xdr_sm_res(XDR *xdrs, sm_res *objp) 78 { 79 80 if (!xdr_enum(xdrs, (enum_t *)objp)) 81 return (FALSE); 82 return (TRUE); 83 } 84 85 bool_t 86 xdr_sm_stat_res(XDR *xdrs, sm_stat_res *objp) 87 { 88 89 if (!xdr_sm_res(xdrs, &objp->res_stat)) 90 return (FALSE); 91 if (!xdr_int(xdrs, &objp->state)) 92 return (FALSE); 93 return (TRUE); 94 } 95 96 bool_t 97 xdr_sm_status(XDR *xdrs, sm_status *objp) 98 { 99 100 if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) 101 return (FALSE); 102 if (!xdr_int(xdrs, &objp->state)) 103 return (FALSE); 104 if (!xdr_opaque(xdrs, objp->priv, 16)) 105 return (FALSE); 106 return (TRUE); 107 } 108