FILE
enum_be.j2
File preview with syntax highlighting.
linux-6.19.14/tools/net/sunrpc/xdrgen/templates/C/enum/decoder/enum_be.j2
1{# SPDX-License-Identifier: GPL-2.0 #} 2 3{% if annotate %} 4/* enum {{ name }} (big-endian) */ 5{% endif %} 6{% if name in public_apis %} 7bool 8{% else %} 9static bool __maybe_unused 10{% endif %} 11xdrgen_decode_{{ name }}(struct xdr_stream *xdr, {{ name }} *ptr) 12{ 13 return xdr_stream_decode_be32(xdr, ptr) == 0; 14}
~/
Read-only file preview.