1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{# SPDX-License-Identifier: GPL-2.0 #}

{% if annotate %}
/* enum {{ name }} (big-endian) */
{% endif %}
{% if name in public_apis %}
bool
{% else %}
static bool __maybe_unused
{% endif %}
xdrgen_encode_{{ name }}(struct xdr_stream *xdr, {{ name }} value)
{
	return xdr_stream_encode_be32(xdr, value) == XDR_UNIT;
}
此生若是錯在相逢 求一個善終