summaryrefslogtreecommitdiff
path: root/tools/net/sunrpc/xdrgen/templates/C/enum/decoder/enum_be.j2
blob: 44c391c10b42ed72e53bfe90659595c8b1fc90ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{# 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_decode_{{ name }}(struct xdr_stream *xdr, {{ name }} *ptr)
{
	return xdr_stream_decode_be32(xdr, ptr) == 0;
}