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