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