GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/librpcsvc/sm_inter.c Lines: 0 45 0.0 %
Date: 2017-11-13 Branches: 0 36 0.0 %

Line Branch Exec Source
1
/*
2
 * Please do not edit this file.
3
 * It was generated using rpcgen.
4
 */
5
6
#include "sm_inter.h"
7
8
bool_t
9
xdr_sm_name(XDR *xdrs, sm_name *objp)
10
{
11
12
13
	if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN))
14
		return (FALSE);
15
	return (TRUE);
16
}
17
18
bool_t
19
xdr_my_id(XDR *xdrs, my_id *objp)
20
{
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
39
	if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN))
40
		return (FALSE);
41
	if (!xdr_my_id(xdrs, &objp->my_id))
42
		return (FALSE);
43
	return (TRUE);
44
}
45
46
bool_t
47
xdr_mon(XDR *xdrs, mon *objp)
48
{
49
50
51
	if (!xdr_mon_id(xdrs, &objp->mon_id))
52
		return (FALSE);
53
	if (!xdr_opaque(xdrs, objp->priv, 16))
54
		return (FALSE);
55
	return (TRUE);
56
}
57
58
bool_t
59
xdr_stat_chge(XDR *xdrs, stat_chge *objp)
60
{
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
70
bool_t
71
xdr_sm_stat(XDR *xdrs, sm_stat *objp)
72
{
73
74
75
	if (!xdr_int(xdrs, &objp->state))
76
		return (FALSE);
77
	return (TRUE);
78
}
79
80
bool_t
81
xdr_res(XDR *xdrs, res *objp)
82
{
83
84
	if (!xdr_enum(xdrs, (enum_t *)objp))
85
		return (FALSE);
86
	return (TRUE);
87
}
88
89
bool_t
90
xdr_sm_stat_res(XDR *xdrs, sm_stat_res *objp)
91
{
92
93
94
	if (!xdr_res(xdrs, &objp->res_stat))
95
		return (FALSE);
96
	if (!xdr_int(xdrs, &objp->state))
97
		return (FALSE);
98
	return (TRUE);
99
}
100
101
bool_t
102
xdr_status(XDR *xdrs, status *objp)
103
{
104
105
106
	if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN))
107
		return (FALSE);
108
	if (!xdr_int(xdrs, &objp->state))
109
		return (FALSE);
110
	if (!xdr_opaque(xdrs, objp->priv, 16))
111
		return (FALSE);
112
	return (TRUE);
113
}