15 lines
302 B
Django/Jinja
15 lines
302 B
Django/Jinja
{# SPDX-License-Identifier: GPL-2.0 #}
|
|
|
|
{% if annotate %}
|
|
/* enum {{ name }} */
|
|
{% 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_u32(xdr, value) == XDR_UNIT;
|
|
}
|