]> git.saurik.com Git - apple/network_cmds.git/blame_incremental - rpc_lockd.tproj/sm_inter_xdr.c
network_cmds-176.tar.gz
[apple/network_cmds.git] / rpc_lockd.tproj / sm_inter_xdr.c
... / ...
CommitLineData
1/*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6#include <rpcsvc/sm_inter.h>
7#ifndef lint
8/*static char sccsid[] = "from: @(#)sm_inter.x 1.7 87/06/24 Copyr 1987 Sun Micro";*/
9/*static char sccsid[] = "from: @(#)sm_inter.x 2.2 88/08/01 4.0 RPCSRC";*/
10static char rcsid[] = "$Id: sm_inter_xdr.c,v 1.2 2002/09/27 05:04:06 lindak Exp $";
11#endif /* not lint */
12
13bool_t
14xdr_sm_name(XDR *xdrs, sm_name *objp)
15{
16
17 if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN))
18 return (FALSE);
19 return (TRUE);
20}
21
22bool_t
23xdr_my_id(XDR *xdrs, my_id *objp)
24{
25
26 if (!xdr_string(xdrs, &objp->my_name, SM_MAXSTRLEN))
27 return (FALSE);
28 if (!xdr_int(xdrs, &objp->my_prog))
29 return (FALSE);
30 if (!xdr_int(xdrs, &objp->my_vers))
31 return (FALSE);
32 if (!xdr_int(xdrs, &objp->my_proc))
33 return (FALSE);
34 return (TRUE);
35}
36
37bool_t
38xdr_mon_id(XDR *xdrs, mon_id *objp)
39{
40
41 if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN))
42 return (FALSE);
43 if (!xdr_my_id(xdrs, &objp->my_id))
44 return (FALSE);
45 return (TRUE);
46}
47
48bool_t
49xdr_mon(XDR *xdrs, mon *objp)
50{
51
52 if (!xdr_mon_id(xdrs, &objp->mon_id))
53 return (FALSE);
54 if (!xdr_opaque(xdrs, objp->priv, 16))
55 return (FALSE);
56 return (TRUE);
57}
58
59bool_t
60xdr_stat_chge(XDR *xdrs, stat_chge *objp)
61{
62
63 if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN))
64 return (FALSE);
65 if (!xdr_int(xdrs, &objp->state))
66 return (FALSE);
67 return (TRUE);
68}
69
70bool_t
71xdr_sm_stat(XDR *xdrs, sm_stat *objp)
72{
73
74 if (!xdr_int(xdrs, &objp->state))
75 return (FALSE);
76 return (TRUE);
77}
78
79bool_t
80xdr_sm_res(XDR *xdrs, sm_res *objp)
81{
82
83 if (!xdr_enum(xdrs, (enum_t *)objp))
84 return (FALSE);
85 return (TRUE);
86}
87
88bool_t
89xdr_sm_stat_res(XDR *xdrs, sm_stat_res *objp)
90{
91
92 if (!xdr_sm_res(xdrs, &objp->res_stat))
93 return (FALSE);
94 if (!xdr_int(xdrs, &objp->state))
95 return (FALSE);
96 return (TRUE);
97}
98
99bool_t
100xdr_sm_status(XDR *xdrs, sm_status *objp)
101{
102
103 if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN))
104 return (FALSE);
105 if (!xdr_int(xdrs, &objp->state))
106 return (FALSE);
107 if (!xdr_opaque(xdrs, objp->priv, 16))
108 return (FALSE);
109 return (TRUE);
110}