GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: usr.sbin/amd/amq/../rpcx/amq_xdr.c Lines: 0 78 0.0 %
Date: 2017-11-07 Branches: 0 66 0.0 %

Line Branch Exec Source
1
/*
2
 * Please do not edit this file.
3
 * It was generated using rpcgen.
4
 */
5
6
#include "amq.h"
7
8
bool_t
9
xdr_amq_string(XDR *xdrs, amq_string *objp)
10
{
11
12
	if (!xdr_string(xdrs, objp, AMQ_STRLEN))
13
		return (FALSE);
14
	return (TRUE);
15
}
16
17
bool_t
18
xdr_time_type(XDR *xdrs, time_type *objp)
19
{
20
21
	if (!xdr_int64_t(xdrs, objp))
22
		return (FALSE);
23
	return (TRUE);
24
}
25
26
bool_t
27
xdr_amq_mount_tree(XDR *xdrs, amq_mount_tree *objp)
28
{
29
30
31
	if (!xdr_amq_string(xdrs, &objp->mt_mountinfo))
32
		return (FALSE);
33
	if (!xdr_amq_string(xdrs, &objp->mt_directory))
34
		return (FALSE);
35
	if (!xdr_amq_string(xdrs, &objp->mt_mountpoint))
36
		return (FALSE);
37
	if (!xdr_amq_string(xdrs, &objp->mt_type))
38
		return (FALSE);
39
	if (!xdr_time_type(xdrs, &objp->mt_mounttime))
40
		return (FALSE);
41
	if (!xdr_u_short(xdrs, &objp->mt_mountuid))
42
		return (FALSE);
43
	if (!xdr_int(xdrs, &objp->mt_getattr))
44
		return (FALSE);
45
	if (!xdr_int(xdrs, &objp->mt_lookup))
46
		return (FALSE);
47
	if (!xdr_int(xdrs, &objp->mt_readdir))
48
		return (FALSE);
49
	if (!xdr_int(xdrs, &objp->mt_readlink))
50
		return (FALSE);
51
	if (!xdr_int(xdrs, &objp->mt_statfs))
52
		return (FALSE);
53
	if (!xdr_pointer(xdrs, (char **)&objp->mt_next, sizeof(amq_mount_tree), (xdrproc_t)xdr_amq_mount_tree))
54
		return (FALSE);
55
	if (!xdr_pointer(xdrs, (char **)&objp->mt_child, sizeof(amq_mount_tree), (xdrproc_t)xdr_amq_mount_tree))
56
		return (FALSE);
57
	return (TRUE);
58
}
59
60
bool_t
61
xdr_amq_mount_tree_p(XDR *xdrs, amq_mount_tree_p *objp)
62
{
63
64
	if (!xdr_pointer(xdrs, (char **)objp, sizeof(amq_mount_tree), (xdrproc_t)xdr_amq_mount_tree))
65
		return (FALSE);
66
	return (TRUE);
67
}
68
69
bool_t
70
xdr_amq_mount_info(XDR *xdrs, amq_mount_info *objp)
71
{
72
73
74
	if (!xdr_amq_string(xdrs, &objp->mi_type))
75
		return (FALSE);
76
	if (!xdr_amq_string(xdrs, &objp->mi_mountpt))
77
		return (FALSE);
78
	if (!xdr_amq_string(xdrs, &objp->mi_mountinfo))
79
		return (FALSE);
80
	if (!xdr_amq_string(xdrs, &objp->mi_fserver))
81
		return (FALSE);
82
	if (!xdr_int(xdrs, &objp->mi_error))
83
		return (FALSE);
84
	if (!xdr_int(xdrs, &objp->mi_refc))
85
		return (FALSE);
86
	if (!xdr_int(xdrs, &objp->mi_up))
87
		return (FALSE);
88
	return (TRUE);
89
}
90
91
bool_t
92
xdr_amq_mount_info_list(XDR *xdrs, amq_mount_info_list *objp)
93
{
94
95
	if (!xdr_array(xdrs, (char **)&objp->amq_mount_info_list_val,
96
	    (u_int *)&objp->amq_mount_info_list_len,
97
	    ~0, sizeof(amq_mount_info), (xdrproc_t)xdr_amq_mount_info))
98
		return (FALSE);
99
	return (TRUE);
100
}
101
102
bool_t
103
xdr_amq_mount_tree_list(XDR *xdrs, amq_mount_tree_list *objp)
104
{
105
106
	if (!xdr_array(xdrs, (char **)&objp->amq_mount_tree_list_val,
107
	    (u_int *)&objp->amq_mount_tree_list_len,
108
	    ~0, sizeof(amq_mount_tree_p), (xdrproc_t)xdr_amq_mount_tree_p))
109
		return (FALSE);
110
	return (TRUE);
111
}
112
113
bool_t
114
xdr_amq_mount_stats(XDR *xdrs, amq_mount_stats *objp)
115
{
116
117
118
	if (!xdr_int(xdrs, &objp->as_drops))
119
		return (FALSE);
120
	if (!xdr_int(xdrs, &objp->as_stale))
121
		return (FALSE);
122
	if (!xdr_int(xdrs, &objp->as_mok))
123
		return (FALSE);
124
	if (!xdr_int(xdrs, &objp->as_merr))
125
		return (FALSE);
126
	if (!xdr_int(xdrs, &objp->as_uerr))
127
		return (FALSE);
128
	return (TRUE);
129
}
130
131
bool_t
132
xdr_amq_opt(XDR *xdrs, amq_opt *objp)
133
{
134
135
	if (!xdr_enum(xdrs, (enum_t *)objp))
136
		return (FALSE);
137
	return (TRUE);
138
}
139
140
bool_t
141
xdr_amq_setopt(XDR *xdrs, amq_setopt *objp)
142
{
143
144
145
	if (!xdr_amq_opt(xdrs, &objp->as_opt))
146
		return (FALSE);
147
	if (!xdr_amq_string(xdrs, &objp->as_str))
148
		return (FALSE);
149
	return (TRUE);
150
}